Skip to content
Permalink
Browse files

[offline editing] Support for layers with identical names

  • Loading branch information
m-kuhn committed Mar 14, 2019
1 parent b0024dc commit 81d93b80b78db68d2d07db0e07a341b217791ccf
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 81d93b8

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