mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
Add an other check to avoid an other TypeError
This commit is contained in:
parent
13f43bfa2f
commit
d2c0a7905b
1 changed files with 2 additions and 1 deletions
|
|
@ -140,7 +140,8 @@ class StartQT5(QMainWindow):
|
|||
def file_dialog(self):
|
||||
"""Open a file dialog and send the selected images to compress_file."""
|
||||
fd = QFileDialog(self)
|
||||
fd.restoreState(self.settings.value("fdstate"))
|
||||
if (self.settings.value("fdstate")):
|
||||
fd.restoreState(self.settings.value("fdstate"))
|
||||
directory = self.settings.value("directory", QVariant(""))
|
||||
fd.setDirectory(directory)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue