mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 15:57:34 +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,
|
QAbstractItemView,
|
||||||
QApplication,
|
QApplication,
|
||||||
QFileDialog,
|
QFileDialog,
|
||||||
|
QListView,
|
||||||
QSystemTrayIcon,
|
QSystemTrayIcon,
|
||||||
QTreeView,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
from vorta.borg._compatibility import BorgCompatibility
|
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)
|
dialog.setParent(parent, QtCore.Qt.WindowType.Sheet)
|
||||||
if want_folder:
|
if want_folder:
|
||||||
dialog.setOption(QFileDialog.Option.ShowDirsOnly)
|
dialog.setOption(QFileDialog.Option.ShowDirsOnly)
|
||||||
list_view = dialog.findChild(QTreeView)
|
list_view = dialog.findChild(QListView)
|
||||||
list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
|
if list_view:
|
||||||
|
list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
|
||||||
|
|
||||||
return dialog
|
return dialog
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue