mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 17:13:57 +00:00
PICARD-1106: Discard the second return value of QFileDialog.getOpenFileNames
getOpenFileNames was previously called getOpenFileNamesAndFilter (see [0]) and returns a tuple (filenames, filter). Since we're not interested in the filter, discard it. This is similar to other fixes already done for QFileDialogs in mainwindow.py and fingerprinting.py. [0] http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html#qfiledialog
This commit is contained in:
@@ -306,7 +306,7 @@ class PluginsOptionsPage(OptionsPage):
|
||||
self.ui.details.setText("<p>%s</p>" % "<br/>\n".join(text))
|
||||
|
||||
def open_plugins(self):
|
||||
files = QtWidgets.QFileDialog.getOpenFileNames(
|
||||
files, _filter = QtWidgets.QFileDialog.getOpenFileNames(
|
||||
self,
|
||||
"",
|
||||
QtCore.QDir.homePath(),
|
||||
|
||||
Reference in New Issue
Block a user