* src/plugins/ChangeTypes.py (run_tool): Disable/enable signals.
* src/plugins/ReorderIds.py (__init__): Disable/enable signals. * src/plugins/PatchNames.py (on_ok_clicked): Start transaction only if doing the changes; disable/enable signals. svn: r6614
This commit is contained in:
@@ -63,6 +63,7 @@ class ReorderIds(Tool.BatchTool):
|
||||
print "Reordering GRAMPS IDs..."
|
||||
|
||||
self.trans = db.transaction_begin("",batch=True)
|
||||
db.disable_signals()
|
||||
|
||||
if uistate:
|
||||
self.progress.set_pass(_('Reordering People IDs'),
|
||||
@@ -142,6 +143,8 @@ class ReorderIds(Tool.BatchTool):
|
||||
print "Done."
|
||||
|
||||
db.transaction_commit(self.trans,_("Reorder GRAMPS IDs"))
|
||||
db.enable_signals()
|
||||
db.request_rebuild()
|
||||
|
||||
def reorder(self, class_type, find_from_id, find_from_handle,
|
||||
find_next_id, table, commit, prefix):
|
||||
|
||||
Reference in New Issue
Block a user