Skip to content

Commit

Permalink
Unfreeze canvas also when cancel is clicked in open ogr layer dialog.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10922 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 14, 2009
1 parent 0da0e7d commit 01bf273
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 01bf273

Please sign in to comment.