mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
qt: fix broken load results dialog
`QFileDialog.getOpenFileName`, under pyqt5, returns a tuple, not only a file path.
This commit is contained in:
parent
b97e89d4d8
commit
5be9d537a5
@ -265,7 +265,7 @@ class DirectoriesDialog(QMainWindow):
|
||||
def loadResultsTriggered(self):
|
||||
title = tr("Select a results file to load")
|
||||
files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
|
||||
destination = QFileDialog.getOpenFileName(self, title, '', files)
|
||||
destination = QFileDialog.getOpenFileName(self, title, '', files)[0]
|
||||
if destination:
|
||||
self.app.model.load_from(destination)
|
||||
self.app.recentResults.insertItem(destination)
|
||||
|
Loading…
x
Reference in New Issue
Block a user