mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix #935
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9220 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
fa0cde8404
commit
630ee1beab
@ -3300,7 +3300,7 @@ bool QgisApp::openLayer( const QString & fileName )
|
||||
QgsMapLayer* ok = NULL;
|
||||
CPLPushErrorHandler( CPLQuietErrorHandler );
|
||||
if ( QgsRasterLayer::isValidRasterFileName( fileName ) )
|
||||
ok = addRasterLayer( fileName, false );
|
||||
ok = addRasterLayer( fileName, fileInfo.completeBaseName() );
|
||||
else // nope - try to load it as a shape/ogr
|
||||
ok = addVectorLayer( fileName, fileName, "ogr" );
|
||||
CPLPopErrorHandler();
|
||||
|
Loading…
x
Reference in New Issue
Block a user