Skip to content

Commit

Permalink
Merge pull request #9524 from m-kuhn/offline_editing_duplicate_layer_…
Browse files Browse the repository at this point in the history
…names_backport_3_6

[offline editing] Support for layers with identical names
  • Loading branch information
m-kuhn committed Mar 18, 2019
2 parents ec490ed + 5da64b1 commit 5b57fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit
char **options = nullptr;

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

//the FID-name should not exist in the original data
Expand Down

0 comments on commit 5b57fc5

Please sign in to comment.