diff --git a/src/core/qgsofflineediting.cpp b/src/core/qgsofflineediting.cpp index 8d212cfa44ad..da055643336d 100644 --- a/src/core/qgsofflineediting.cpp +++ b/src/core/qgsofflineediting.cpp @@ -661,11 +661,11 @@ QgsVectorLayer* QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlit // Check if the online feature has been fetched (WFS download aborted for some reason) if ( i < offlineFeatureIds.count() ) { - addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( remoteCount - ( i + 1 ) ) ); + addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( i ) ); } else { - showWarning( QString( "Feature cannot be copied to the offline layer, please check if the online layer '%1' is sill accessible." ).arg( layer->name() ) ); + showWarning( tr( "Feature cannot be copied to the offline layer, please check if the online layer '%1' is still accessible." ).arg( layer->name() ) ); return nullptr; } emit progressUpdated( featureCount++ );