Skip to content

Commit 01bf273

Browse files
author
wonder
committed
Unfreeze canvas also when cancel is clicked in open ogr layer dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10922 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0da0e7d commit 01bf273

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/app/qgisapp.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -2347,16 +2347,14 @@ void QgisApp::addVectorLayer()
23472347
{
23482348
QStringList selectedSources = ovl->dataSources();
23492349
QString enc = ovl->encoding();
2350-
if ( selectedSources.isEmpty() )
2350+
if ( !selectedSources.isEmpty() )
23512351
{
2352-
// no files were selected, so just bail
2353-
mMapCanvas->freeze( false );
2354-
return;
2355-
}
2356-
else
23572352
addVectorLayers( selectedSources, enc, ovl->dataSourceType() );
2353+
}
23582354
}
23592355

2356+
mMapCanvas->freeze( false );
2357+
23602358
delete ovl;
23612359
// update UI
23622360
qApp->processEvents();

0 commit comments

Comments
 (0)