mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04: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:
|
||||
dirkey = None
|
||||
d = QFileDialog(parent)
|
||||
# fix #233 crash
|
||||
if isMac:
|
||||
d.setOptions(QFileDialog.DontUseNativeDialog)
|
||||
d.setFileMode(QFileDialog.ExistingFile)
|
||||
d.setDirectory(dir)
|
||||
d.setWindowTitle(title)
|
||||
|
|
Loading…
Reference in a new issue