Skip to content
Permalink
Browse files

Merge pull request #9524 from m-kuhn/offline_editing_duplicate_layer_…

…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 5b57fc56447da0552ded826b4356e4daab2c98ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsofflineediting.cpp
@@ -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

0 comments on commit 5b57fc5

Please sign in to comment.
You can’t perform that action at this time.