Skip to content
Permalink
Browse files

Update src/core/qgsofflineediting.cpp

Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
nyalldawson and m-kuhn committed Oct 26, 2020
1 parent 6e1b23a commit 16f1a00d955d71366dc5ec8a9e0e185c352b8651
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/qgsofflineediting.cpp
@@ -250,7 +250,7 @@ void QgsOfflineEditing::synchronize()
QString remoteSource = layer->customProperty( CUSTOM_PROPERTY_REMOTE_SOURCE, "" ).toString();
QString remoteProvider = layer->customProperty( CUSTOM_PROPERTY_REMOTE_PROVIDER, "" ).toString();
QString remoteName = layer->name();
QString remoteNameSuffix = layer->customProperty( CUSTOM_PROPERTY_LAYERNAME_SUFFIX, " (offline)" ).toString();
QString remoteNameSuffix = layer->customProperty( CUSTOM_PROPERTY_LAYERNAME_SUFFIX, QStringLiteral( " (offline)" ) ).toString();
if ( remoteName.endsWith( remoteNameSuffix ) )
remoteName.chop( remoteNameSuffix.size() );
const QgsVectorLayer::LayerOptions options { QgsProject::instance()->transformContext() };
@@ -1680,4 +1680,3 @@ void QgsOfflineEditing::layerAdded( QgsMapLayer *layer )
}
}


0 comments on commit 16f1a00

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