Skip to content

Commit

Permalink
Fix offline layer name
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 17, 2018
1 parent 6584fe7 commit 27aeaab
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 @@ -636,7 +636,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit
char **options = nullptr;

options = CSLSetNameValue( options, "OVERWRITE", "YES" );
options = CSLSetNameValue( options, "IDENTIFIER", layer->name().toUtf8().constData() );
options = CSLSetNameValue( options, "IDENTIFIER", tr( "%1 (offline)" ).arg( layer->name() ).toUtf8().constData() );
options = CSLSetNameValue( options, "DESCRIPTION", layer->dataComment().toUtf8().constData() );
#if 0
options = CSLSetNameValue( options, "FID", featureId.toUtf8().constData() );
Expand Down

0 comments on commit 27aeaab

Please sign in to comment.