mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
changing sort field is w modal
This commit is contained in:
parent
f110ffbb5f
commit
ed3774ef7d
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue