Browse Source

Fix save dialog for qt5

tags/v0.9.0
falkTX 6 years ago
parent
commit
7c6ca1026f
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      src/catarina.py
  2. +1
    -0
      src/shared_canvasjack.py

+ 1
- 0
src/catarina.py View File

@@ -1040,6 +1040,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]
if path:
self.m_save_path = path
self.saveFile(path)


+ 1
- 0
src/shared_canvasjack.py View File

@@ -499,6 +499,7 @@ class AbstractCanvasJackClass(QMainWindow):
@pyqtSlot()
def slot_canvasSaveImage(self):
newPath = QFileDialog.getSaveFileName(self, self.tr("Save Image"), filter=self.tr("PNG Image (*.png);;JPEG Image (*.jpg)"))
newPath = newPath[0]

if not newPath:
return


Loading…
Cancel
Save