* 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:
Alex Roitman
2006-05-11 00:06:43 +00:00
parent f3889a89dd
commit cc500922f8
4 changed files with 21 additions and 3 deletions

View File

@@ -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):