changing sort field is w modal

This commit is contained in:
Damien Elmes 2011-04-16 06:55:34 +09:00
parent f110ffbb5f
commit ed3774ef7d
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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)