Skip to content

Commit 27aeaab

Browse files
committed
Fix offline layer name
1 parent 6584fe7 commit 27aeaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsofflineediting.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit
636636
char **options = nullptr;
637637

638638
options = CSLSetNameValue( options, "OVERWRITE", "YES" );
639-
options = CSLSetNameValue( options, "IDENTIFIER", layer->name().toUtf8().constData() );
639+
options = CSLSetNameValue( options, "IDENTIFIER", tr( "%1 (offline)" ).arg( layer->name() ).toUtf8().constData() );
640640
options = CSLSetNameValue( options, "DESCRIPTION", layer->dataComment().toUtf8().constData() );
641641
#if 0
642642
options = CSLSetNameValue( options, "FID", featureId.toUtf8().constData() );

0 commit comments

Comments
 (0)