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:
Kovid Goyal 2007-12-27 23:50:51 +00:00
parent f571a7b603
commit 0959c9714e

View File

@ -268,7 +268,8 @@ class FileDialog(QObject):
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()
if dir:
return dir[0]