From ed3774ef7d936036e8746f14b8603882594c2483 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 16 Apr 2011 06:55:34 +0900 Subject: [PATCH] changing sort field is w modal --- aqt/browser.py | 2 +- aqt/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index c2aa42562..9987a65fa 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -500,7 +500,7 @@ class Browser(QMainWindow): type = self.model.activeCols[idx] noSort = ("question", "answer", "template", "group") if type in noSort: - showInfo(_("Please choose a different column to sort on.")) + showInfo(_("Please choose a different column to sort by.")) type = self.deck.conf['sortType'] if self.deck.conf['sortType'] != type: self.deck.conf['sortType'] = type diff --git a/aqt/utils.py b/aqt/utils.py index a7a428dfc..237f7e588 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -182,6 +182,7 @@ def chooseList(prompt, choices, startrow=0, parent=None): if not parent: parent = aqt.mw.app.activeWindow() d = QDialog(parent) + d.setWindowModality(Qt.WindowModal) l = QVBoxLayout() d.setLayout(l) t = QLabel(prompt)