Skip to content
Permalink
Browse files

[offline editing] Support for layers with identical names

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 14, 2019
1 parent a8078a2 commit c910bcdfbbe2c08311878ef8932d833107450a10
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 c910bcd

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