Fix for getOpenFileName breakage
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
56b078f660
commit
c810989ddd
|
@ -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…
Reference in New Issue