Add comment clarifying use of modal during tag assignment/reÃmoval

svn: r17699
This commit is contained in:
Michiel Nauta 2011-06-06 20:19:38 +00:00
parent 7a386e344c
commit dc36a4b9c2

View File

@ -260,6 +260,8 @@ class Tags(DbGUIElement):
"""
view = self.uistate.viewmanager.active_page
selected = view.selected_handles()
# Make the dialog modal so that the user can't start another
# database transaction while the one setting tags is still running.
pmon = progressdlg.ProgressMonitor(progressdlg.GtkProgressDialog,
("", self.uistate.window, gtk.DIALOG_MODAL), popup_time=2)
status = progressdlg.LongOpStatus(msg=_("Adding Tags"),
@ -496,6 +498,8 @@ class OrganizeTagsDialog(object):
self.db.commit_note)}
links = [link for link in self.db.find_backlink_handles(tag_handle)]
# Make the dialog modal so that the user can't start another
# database transaction while the one removing tags is still running.
pmon = progressdlg.ProgressMonitor(progressdlg.GtkProgressDialog,
("", self.parent_window, gtk.DIALOG_MODAL), popup_time=2)
status = progressdlg.LongOpStatus(msg=_("Removing Tags"),