mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
[#157 state:fixed] Straightened up extension glitches during result load/save under Qt
This commit is contained in:
@@ -198,7 +198,7 @@ class DirectoriesDialog(QMainWindow):
|
||||
|
||||
def loadResultsTriggered(self):
|
||||
title = trmsg("SelectResultToLoadMsg")
|
||||
files = tr("dupeGuru Results (*.dupeguru)")
|
||||
files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
|
||||
destination = QFileDialog.getOpenFileName(self, title, '', files)
|
||||
if destination:
|
||||
self.app.load_from(destination)
|
||||
|
||||
@@ -335,6 +335,8 @@ class ResultWindow(QMainWindow):
|
||||
files = tr("dupeGuru Results (*.dupeguru)")
|
||||
destination = QFileDialog.getSaveFileName(self, title, '', files)
|
||||
if destination:
|
||||
if not destination.endswith('.dupeguru'):
|
||||
destination = '{}.dupeguru'.format(destination)
|
||||
self.app.save_as(destination)
|
||||
self.app.recentResults.insertItem(destination)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user