Add comment clarifying use of modal during tag assignment/reÃmoval
svn: r17700
This commit is contained in:
parent
a8f5896025
commit
32e62f6cc2
@ -260,6 +260,8 @@ class Tags(DbGUIElement):
|
|||||||
"""
|
"""
|
||||||
view = self.uistate.viewmanager.active_page
|
view = self.uistate.viewmanager.active_page
|
||||||
selected = view.selected_handles()
|
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,
|
pmon = progressdlg.ProgressMonitor(progressdlg.GtkProgressDialog,
|
||||||
("", self.uistate.window, gtk.DIALOG_MODAL), popup_time=2)
|
("", self.uistate.window, gtk.DIALOG_MODAL), popup_time=2)
|
||||||
status = progressdlg.LongOpStatus(msg=_("Adding Tags"),
|
status = progressdlg.LongOpStatus(msg=_("Adding Tags"),
|
||||||
@ -496,6 +498,8 @@ class OrganizeTagsDialog(object):
|
|||||||
self.db.commit_note)}
|
self.db.commit_note)}
|
||||||
|
|
||||||
links = [link for link in self.db.find_backlink_handles(tag_handle)]
|
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,
|
pmon = progressdlg.ProgressMonitor(progressdlg.GtkProgressDialog,
|
||||||
("", self.parent_window, gtk.DIALOG_MODAL), popup_time=2)
|
("", self.parent_window, gtk.DIALOG_MODAL), popup_time=2)
|
||||||
status = progressdlg.LongOpStatus(msg=_("Removing Tags"),
|
status = progressdlg.LongOpStatus(msg=_("Removing Tags"),
|
||||||
|
Loading…
Reference in New Issue
Block a user