From dc36a4b9c20b2fafaa2348edeec637153bf77586 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Mon, 6 Jun 2011 20:19:38 +0000 Subject: [PATCH] =?UTF-8?q?Add=20comment=20clarifying=20use=20of=20modal?= =?UTF-8?q?=20during=20tag=20assignment/re=C3=83moval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn: r17699 --- src/gui/views/tags.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/views/tags.py b/src/gui/views/tags.py index 38a3a05b4..9c33644b5 100644 --- a/src/gui/views/tags.py +++ b/src/gui/views/tags.py @@ -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"),