Browse Source

Fix typo calling saveFile function

master
Ivan Holmes 5 years ago
parent
commit
6cf5b3230d
  1. 4
      gui.py

4
gui.py

@ -243,13 +243,13 @@ class DocumentWindow(QMainWindow):
filePath = QFileDialog.getSaveFileName(self.window.tabWidget, 'Save file', self.getPath("workingPath"), "Chordsheet ML files (*.xml *.cml)")[0] filePath = QFileDialog.getSaveFileName(self.window.tabWidget, 'Save file', self.getPath("workingPath"), "Chordsheet ML files (*.xml *.cml)")[0]
else: else:
filePath = self.currentFilePath filePath = self.currentFilePath
saveFile(filePath)
self.saveFile(filePath)
def menuFileSaveAsAction(self): def menuFileSaveAsAction(self):
self.updateDocument() self.updateDocument()
filePath = QFileDialog.getSaveFileName(self.window.tabWidget, 'Save file', self.getPath("workingPath"), "Chordsheet ML files (*.xml *.cml)")[0] filePath = QFileDialog.getSaveFileName(self.window.tabWidget, 'Save file', self.getPath("workingPath"), "Chordsheet ML files (*.xml *.cml)")[0]
if filePath: if filePath:
saveFile(filePath)
self.saveFile(filePath)
self.updateTitleBar() # as we now have a new filename self.updateTitleBar() # as we now have a new filename
def saveFile(self, filePath): def saveFile(self, filePath):

Loading…
Cancel
Save