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)