mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Work around Qt bug 1894 (detached list pop-up)
This commit is contained in:
parent
e07db64992
commit
7061c2c118
1 changed files with 8 additions and 1 deletions
|
@ -382,7 +382,14 @@ Enter deck to place new %s cards in, or leave blank:""") %
|
||||||
form.font.setCurrentFont(QFont("Arial"))
|
form.font.setCurrentFont(QFont("Arial"))
|
||||||
form.size.setValue(20)
|
form.size.setValue(20)
|
||||||
diag.show()
|
diag.show()
|
||||||
form.fields.showPopup()
|
# Work around a Qt bug,
|
||||||
|
# https://bugreports.qt-project.org/browse/QTBUG-1894
|
||||||
|
if isMac or isWin:
|
||||||
|
# No problems on Macs or Windows.
|
||||||
|
form.fields.showPopup()
|
||||||
|
else:
|
||||||
|
# Delay showing the pop-up.
|
||||||
|
self.mw.progress.timer(200, form.fields.showPopup, False)
|
||||||
if not diag.exec_():
|
if not diag.exec_():
|
||||||
return
|
return
|
||||||
if form.radioQ.isChecked():
|
if form.radioQ.isChecked():
|
||||||
|
|
Loading…
Reference in a new issue