diff --git a/examples/kissoflife.xml b/examples/kissoflife.xml index a03e96e..64eebc4 100644 --- a/examples/kissoflife.xml +++ b/examples/kissoflife.xml @@ -1 +1 @@ -Kiss of LifeSadeIvan HolmesSade Adu, Paul S. Denman, Andrew Hale, Stuart Matthewman4AM9F♯m11DM7C♯m7Bm7
8.0AM98.0F♯m111.5DM72.0C♯m74.5Bm78.0F♯m11
3.5Bm74.5F♯m113.5Bm74.5F♯m11
\ No newline at end of file +Kiss of LifeSadeIvan HolmesSade Adu, Paul S. Denman, Andrew Hale, Stuart Matthewman4AM9A,B,C♯,EF♯m11A,B,C♯,EDM7A,C♯,FC♯m7G♯,B,EBm7A,D,F♯
8.0AM98.0F♯m111.5DM72.0C♯m74.5Bm78.0F♯m11
3.5Bm74.5F♯m113.5Bm74.5F♯m11
\ No newline at end of file diff --git a/gui.py b/gui.py index 6086a1f..f38369e 100755 --- a/gui.py +++ b/gui.py @@ -331,12 +331,14 @@ class DocumentWindow(QMainWindow): def menuFileSaveAction(self): self.updateDocument() - if not self.currentFilePath: + + if self.currentFilePath: + self.saveFile(self.currentFilePath) + else: filePath = QFileDialog.getSaveFileName(self.window.tabWidget, 'Save file', self.getPath( "workingPath"), "Chordsheet ML files (*.xml *.cml)")[0] - else: - filePath = self.currentFilePath - self.saveFile(filePath) + if filePath: + self.saveFile(filePath) def menuFileSaveAsAction(self): self.updateDocument()