Browse Source

Fix for getOpenFileName breakage

Signed-off-by: falkTX <falktx@falktx.com>
tags/v0.9.2
falkTX 2 years ago
parent
commit
c810989ddd
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/catarina.py

+ 2
- 3
src/catarina.py View File

@@ -1026,7 +1026,7 @@ class CatarinaMainW(AbstractCanvasJackClass):

@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)

@@ -1039,8 +1039,7 @@ class CatarinaMainW(AbstractCanvasJackClass):

@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)


Loading…
Cancel
Save