We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 0da0e7d commit 01bf273Copy full SHA for 01bf273
src/app/qgisapp.cpp
@@ -2347,16 +2347,14 @@ void QgisApp::addVectorLayer()
2347
{
2348
QStringList selectedSources = ovl->dataSources();
2349
QString enc = ovl->encoding();
2350
- if ( selectedSources.isEmpty() )
+ if ( !selectedSources.isEmpty() )
2351
2352
- // no files were selected, so just bail
2353
- mMapCanvas->freeze( false );
2354
- return;
2355
- }
2356
- else
2357
addVectorLayers( selectedSources, enc, ovl->dataSourceType() );
+ }
2358
}
2359
+ mMapCanvas->freeze( false );
+
2360
delete ovl;
2361
// update UI
2362
qApp->processEvents();
0 commit comments