mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-04 00:06:15 -04:00
Merge pull request #5814 from m-kuhn/fixMultiLayerOfflineEditing
[offline] Apply attribute changes on multiple layers
This commit is contained in:
commit
cb94bcf565
@ -297,10 +297,6 @@ void QgsOfflineEditing::synchronize()
|
|||||||
sqlExec( database.get(), sql );
|
sqlExec( database.get(), sql );
|
||||||
sql = QStringLiteral( "DELETE FROM 'log_geometry_updates' WHERE \"layer_id\" = %1" ).arg( layerId );
|
sql = QStringLiteral( "DELETE FROM 'log_geometry_updates' WHERE \"layer_id\" = %1" ).arg( layerId );
|
||||||
sqlExec( database.get(), sql );
|
sqlExec( database.get(), sql );
|
||||||
|
|
||||||
// reset commitNo
|
|
||||||
QString sql = QStringLiteral( "UPDATE 'log_indices' SET 'last_index' = 0 WHERE \"name\" = 'commit_no'" );
|
|
||||||
sqlExec( database.get(), sql );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -331,6 +327,10 @@ void QgsOfflineEditing::synchronize()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reset commitNo
|
||||||
|
QString sql = QStringLiteral( "UPDATE 'log_indices' SET 'last_index' = 0 WHERE \"name\" = 'commit_no'" );
|
||||||
|
sqlExec( database.get(), sql );
|
||||||
|
|
||||||
emit progressStopped();
|
emit progressStopped();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user