Skip to content
Permalink
Browse files

[offline editing] Support for layers with identical names

  • Loading branch information
m-kuhn committed Mar 15, 2019
1 parent 7baf9df commit 5da64b1759b2389f408415428a2ae71fdf123bcf
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 5da64b1

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