Skip to content

Commit

Permalink
Merge pull request #5814 from m-kuhn/fixMultiLayerOfflineEditing
Browse files Browse the repository at this point in the history
[offline] Apply attribute changes on multiple layers
  • Loading branch information
m-kuhn authored Dec 6, 2017
2 parents ab859c9 + 3bbda6c commit cb94bcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit cb94bcf

Please sign in to comment.