Skip to content

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3300,7 +3300,7 @@ bool QgisApp::openLayer( const QString & fileName )
33003300
QgsMapLayer* ok = NULL;
33013301
CPLPushErrorHandler( CPLQuietErrorHandler );
33023302
if ( QgsRasterLayer::isValidRasterFileName( fileName ) )
3303-
ok = addRasterLayer( fileName, false );
3303+
ok = addRasterLayer( fileName, fileInfo.completeBaseName() );
33043304
else // nope - try to load it as a shape/ogr
33053305
ok = addVectorLayer( fileName, fileName, "ogr" );
33063306
CPLPopErrorHandler();

0 commit comments

Comments
 (0)
Please sign in to comment.