mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in choose directory dialog that was preventing dialog settings from being saved and also causing crashes on some qt builds
This commit is contained in:
parent
f571a7b603
commit
0959c9714e
@ -268,7 +268,8 @@ class FileDialog(QObject):
|
|||||||
|
|
||||||
|
|
||||||
def choose_dir(window, name, title):
|
def choose_dir(window, name, title):
|
||||||
fd = FileDialog(title, [], False, window, mode=QFileDialog.DirectoryOnly)
|
fd = FileDialog(title, [], False, window, name=name,
|
||||||
|
mode=QFileDialog.DirectoryOnly)
|
||||||
dir = fd.get_files()
|
dir = fd.get_files()
|
||||||
if dir:
|
if dir:
|
||||||
return dir[0]
|
return dir[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user