We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa0cde8 commit 630ee1bCopy full SHA for 630ee1b
src/app/qgisapp.cpp
@@ -3300,7 +3300,7 @@ bool QgisApp::openLayer( const QString & fileName )
3300
QgsMapLayer* ok = NULL;
3301
CPLPushErrorHandler( CPLQuietErrorHandler );
3302
if ( QgsRasterLayer::isValidRasterFileName( fileName ) )
3303
- ok = addRasterLayer( fileName, false );
+ ok = addRasterLayer( fileName, fileInfo.completeBaseName() );
3304
else // nope - try to load it as a shape/ogr
3305
ok = addVectorLayer( fileName, fileName, "ogr" );
3306
CPLPopErrorHandler();
0 commit comments