Skip to content
Permalink
Browse files

Unfreeze canvas also when cancel is clicked in open ogr layer dialog.

git-svn-id: http://svn.osgeo.org/qgis/trunk@10922 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Jun 14, 2009
1 parent 5752dc5 commit d080101a48ff03e6d51c382cdc4077e8e0797724
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/app/qgisapp.cpp
@@ -2347,16 +2347,14 @@ void QgisApp::addVectorLayer()
{
QStringList selectedSources = ovl->dataSources();
QString enc = ovl->encoding();
if ( selectedSources.isEmpty() )
if ( !selectedSources.isEmpty() )
{
// no files were selected, so just bail
mMapCanvas->freeze( false );
return;
}
else
addVectorLayers( selectedSources, enc, ovl->dataSourceType() );
}
}

mMapCanvas->freeze( false );

delete ovl;
// update UI
qApp->processEvents();

0 comments on commit d080101

Please sign in to comment.
You can’t perform that action at this time.