mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
minor change
This commit is contained in:
parent
5ae4527ae2
commit
28d6034800
1 changed files with 4 additions and 3 deletions
|
@ -19,8 +19,8 @@
|
|||
QAbstractItemView,
|
||||
QApplication,
|
||||
QFileDialog,
|
||||
QListView,
|
||||
QSystemTrayIcon,
|
||||
QTreeView,
|
||||
)
|
||||
|
||||
from vorta.borg._compatibility import BorgCompatibility
|
||||
|
@ -178,8 +178,9 @@ def choose_file_dialog(parent, title, want_folder=True):
|
|||
dialog.setParent(parent, QtCore.Qt.WindowType.Sheet)
|
||||
if want_folder:
|
||||
dialog.setOption(QFileDialog.Option.ShowDirsOnly)
|
||||
list_view = dialog.findChild(QTreeView)
|
||||
list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
|
||||
list_view = dialog.findChild(QListView)
|
||||
if list_view:
|
||||
list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
|
||||
|
||||
return dialog
|
||||
|
||||
|
|
Loading…
Reference in a new issue