From 525f0f01a2ce5bf5183907d21c28d911c1ae8c9e Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 14 Mar 2019 20:34:09 +0100 Subject: [PATCH] [offline editing] Support for layers with identical names --- src/core/qgsofflineediting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/qgsofflineediting.cpp b/src/core/qgsofflineediting.cpp index 032fc8ba761..21e52e25e14 100644 --- a/src/core/qgsofflineediting.cpp +++ b/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