mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
[offline editing] Support for layers with identical names
This commit is contained in:
parent
95930ed68c
commit
525f0f01a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user