Skip to content

Commit f99ccf0

Browse files
committedNov 6, 2015
show filename in layer name when importing multiple layers from a ogr datasource (implements #13756)
1 parent 5f3954a commit f99ccf0

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
@@ -3595,7 +3595,7 @@ void QgisApp::loadOGRSublayers( const QString& layertype, const QString& uri, co
35953595
QgsDebugMsg( "Creating new vector layer using " + composedURI );
35963596
QString name = list.at( i );
35973597
name.replace( ':', ' ' );
3598-
QgsVectorLayer *layer = new QgsVectorLayer( composedURI, name, "ogr", false );
3598+
QgsVectorLayer *layer = new QgsVectorLayer( composedURI, fileName + " " + name, "ogr", false );
35993599
if ( layer && layer->isValid() )
36003600
{
36013601
myList << layer;

0 commit comments

Comments
 (0)
Failed to load comments.