Skip to content

Commit 5b57fc5

Browse files
authored
Merge pull request #9524 from m-kuhn/offline_editing_duplicate_layer_names_backport_3_6
[offline editing] Support for layers with identical names
2 parents ec490ed + 5da64b1 commit 5b57fc5

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
@@ -642,7 +642,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit
642642
char **options = nullptr;
643643

644644
options = CSLSetNameValue( options, "OVERWRITE", "YES" );
645-
options = CSLSetNameValue( options, "IDENTIFIER", tr( "%1 (offline)" ).arg( layer->name() ).toUtf8().constData() );
645+
options = CSLSetNameValue( options, "IDENTIFIER", tr( "%1 (offline)" ).arg( layer->id() ).toUtf8().constData() );
646646
options = CSLSetNameValue( options, "DESCRIPTION", layer->dataComment().toUtf8().constData() );
647647

648648
//the FID-name should not exist in the original data

0 commit comments

Comments
 (0)