Skip to content

Commit

Permalink
[offline] Apply attribute changes on multiple layers
Browse files Browse the repository at this point in the history
Fix #17647
  • Loading branch information
m-kuhn committed Dec 6, 2017
1 parent 0399920 commit bfe0337
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsofflineediting.cpp
Expand Up @@ -307,10 +307,6 @@ void QgsOfflineEditing::synchronize()
sqlExec( db, sql );
sql = QString( "DELETE FROM 'log_geometry_updates' WHERE \"layer_id\" = %1" ).arg( layerId );
sqlExec( db, sql );

// reset commitNo
QString sql = QString( "UPDATE 'log_indices' SET 'last_index' = 0 WHERE \"name\" = 'commit_no'" );
sqlExec( db, sql );
}
else
{
Expand Down Expand Up @@ -347,6 +343,10 @@ void QgsOfflineEditing::synchronize()
}
}

// reset commitNo
QString sql = QString( "UPDATE 'log_indices' SET 'last_index' = 0 WHERE \"name\" = 'commit_no'" );
sqlExec( db, sql );

emit progressStopped();

sqlite3_close( db );
Expand Down

0 comments on commit bfe0337

Please sign in to comment.