Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Fix for getOpenFileName breakage
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jun 18, 2022
1 parent 56b078f commit c810989
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/catarina.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ def slot_projectNew(self):

@pyqtSlot()
def slot_projectOpen(self):
path = QFileDialog.getOpenFileName(self, self.tr("Load State"), filter=self.tr("Catarina XML Document (*.xml)"))
path, _ = QFileDialog.getOpenFileName(self, self.tr("Load State"), filter=self.tr("Catarina XML Document (*.xml)"))
if path:
self.loadFile(path)

Expand All @@ -1039,8 +1039,7 @@ def slot_projectSave(self):

@pyqtSlot()
def slot_projectSaveAs(self):
path = QFileDialog.getSaveFileName(self, self.tr("Save State"), filter=self.tr("Catarina XML Document (*.xml)"))
path = path[0]
path, _ = QFileDialog.getSaveFileName(self, self.tr("Save State"), filter=self.tr("Catarina XML Document (*.xml)"))
if path:
self.m_save_path = path
self.saveFile(path)
Expand Down

0 comments on commit c810989

Please sign in to comment.