mirror of
https://github.com/borgbase/vorta
synced 2025-02-08 15:44:34 +00:00
QFileDialog: set file mode to "directory"
without this, it is not possible to choose a directory, it only lets you select files (tested on linux).
This commit is contained in:
parent
8d01767b60
commit
f5702b7bf0
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ def choose_folder_dialog(parent, title):
|
|||
options = QFileDialog.Options()
|
||||
options |= QFileDialog.ShowDirsOnly
|
||||
dialog = QFileDialog(parent, title, os.path.expanduser('~'), options=options)
|
||||
dialog.setFileMode(QFileDialog.Directory)
|
||||
dialog.setParent(parent, QtCore.Qt.Sheet)
|
||||
return dialog
|
||||
|
||||
|
|
Loading…
Reference in a new issue