small fix, preventing access to drag and drop in open folders dialog

This commit is contained in:
Marcel Paffrath 2017-05-02 12:13:55 +02:00
parent 686ca4489c
commit b0c80075fa
2 changed files with 2 additions and 1 deletions

View File

@ -1762,6 +1762,7 @@ class getExistingDirectories(QFileDialog):
def __init__(self, *args): def __init__(self, *args):
super(getExistingDirectories, self).__init__(*args) super(getExistingDirectories, self).__init__(*args)
self.setOption(self.DontUseNativeDialog, True) self.setOption(self.DontUseNativeDialog, True)
self.setOption(self.ReadOnly, True)
self.setFileMode(self.Directory) self.setFileMode(self.Directory)
self.setOption(self.ShowDirsOnly, True) self.setOption(self.ShowDirsOnly, True)
self.findChildren(QListView)[0].setSelectionMode(QAbstractItemView.ExtendedSelection) self.findChildren(QListView)[0].setSelectionMode(QAbstractItemView.ExtendedSelection)

View File

@ -1 +1 @@
6b7d-dirty 686c-dirty