mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
don't use native filepicker on osx due to crash
This commit is contained in:
parent
37bd189c2b
commit
70c85c011f
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ def getFile(parent, title, cb, filter="*.*", dir=None, key=None):
|
||||||
else:
|
else:
|
||||||
dirkey = None
|
dirkey = None
|
||||||
d = QFileDialog(parent)
|
d = QFileDialog(parent)
|
||||||
|
# fix #233 crash
|
||||||
|
if isMac:
|
||||||
|
d.setOptions(QFileDialog.DontUseNativeDialog)
|
||||||
d.setFileMode(QFileDialog.ExistingFile)
|
d.setFileMode(QFileDialog.ExistingFile)
|
||||||
d.setDirectory(dir)
|
d.setDirectory(dir)
|
||||||
d.setWindowTitle(title)
|
d.setWindowTitle(title)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue