Skip to content
Permalink
Browse files

[offline] Apply attribute changes on multiple layers

Fix #17647
  • Loading branch information
m-kuhn committed Dec 6, 2017
1 parent ab859c9 commit 3bbda6cf6848896d81655967315db16bfa00dabd
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgsofflineediting.cpp
@@ -297,10 +297,6 @@ void QgsOfflineEditing::synchronize()
sqlExec( database.get(), sql );
sql = QStringLiteral( "DELETE FROM 'log_geometry_updates' WHERE \"layer_id\" = %1" ).arg( layerId );
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
{
@@ -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();
}

0 comments on commit 3bbda6c

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