git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9220 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2008-08-30 21:58:44 +00:00
parent fa0cde8404
commit 630ee1beab

View File

@ -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();