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

Commit c810989

Browse files
committed
Fix for getOpenFileName breakage
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 56b078f commit c810989

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/catarina.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def slot_projectNew(self):
10261026

10271027
@pyqtSlot()
10281028
def slot_projectOpen(self):
1029-
path = QFileDialog.getOpenFileName(self, self.tr("Load State"), filter=self.tr("Catarina XML Document (*.xml)"))
1029+
path, _ = QFileDialog.getOpenFileName(self, self.tr("Load State"), filter=self.tr("Catarina XML Document (*.xml)"))
10301030
if path:
10311031
self.loadFile(path)
10321032

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

10401040
@pyqtSlot()
10411041
def slot_projectSaveAs(self):
1042-
path = QFileDialog.getSaveFileName(self, self.tr("Save State"), filter=self.tr("Catarina XML Document (*.xml)"))
1043-
path = path[0]
1042+
path, _ = QFileDialog.getSaveFileName(self, self.tr("Save State"), filter=self.tr("Catarina XML Document (*.xml)"))
10441043
if path:
10451044
self.m_save_path = path
10461045
self.saveFile(path)

0 commit comments

Comments
 (0)