diff --git a/qtgui/designer/mainwindow.py b/qtgui/designer/mainwindow.py
index 5d1a496..f214cda 100644
--- a/qtgui/designer/mainwindow.py
+++ b/qtgui/designer/mainwindow.py
@@ -2,9 +2,10 @@
# Form implementation generated from reading ui file 'mainwindow.ui'
#
-# Created by: PyQt5 UI code generator 5.13.2
+# Created by: PyQt5 UI code generator 5.15.1
#
-# WARNING! All changes made in this file will be lost!
+# WARNING: Any manual changes made to this file will be lost when pyuic5 is
+# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
@@ -659,6 +660,8 @@ class Ui_MainWindow(object):
self.actionZoom_Out_Score_View = QtWidgets.QAction(MainWindow)
self.actionZoom_Out_Score_View.setShortcut("Ctrl+-")
self.actionZoom_Out_Score_View.setObjectName("actionZoom_Out_Score_View")
+ self.actionQuit = QtWidgets.QAction(MainWindow)
+ self.actionQuit.setObjectName("actionQuit")
self.menuObjects.addAction(self.actionMetrical_Instruction)
self.menuObjects.addAction(self.actionClef)
self.menuObjects.addAction(self.actionKey_Signature)
@@ -798,6 +801,7 @@ class Ui_MainWindow(object):
self.menuView.addAction(self.actionPlayFromBeginning)
self.menuView.addAction(self.actionMetronome_Enabled)
self.menuView.addSeparator()
+ self.menuView.addAction(self.actionQuit)
self.menuEdit_MusicItem.addAction(self.actionAddCursorNoteToChord)
self.menuEdit_MusicItem.addAction(self.actionDeleteCursorNoteFromChord)
self.menuEdit_MusicItem.addAction(self.actionSplit_in_2)
@@ -983,3 +987,5 @@ class Ui_MainWindow(object):
self.actionLyRepeat.setText(_translate("MainWindow", "Repeat"))
self.actionZoom_In_Score_View.setText(_translate("MainWindow", "Zoom In Score View"))
self.actionZoom_Out_Score_View.setText(_translate("MainWindow", "Zoom Out Score View"))
+ self.actionQuit.setText(_translate("MainWindow", "Quit (without saving)"))
+ self.actionQuit.setShortcut(_translate("MainWindow", "Ctrl+Q"))
diff --git a/qtgui/designer/mainwindow.ui b/qtgui/designer/mainwindow.ui
index 6a97e89..c012cd1 100644
--- a/qtgui/designer/mainwindow.ui
+++ b/qtgui/designer/mainwindow.ui
@@ -228,6 +228,7 @@
+
diff --git a/qtgui/menu.py b/qtgui/menu.py
index 55a9ed3..510c55b 100644
--- a/qtgui/menu.py
+++ b/qtgui/menu.py
@@ -31,6 +31,7 @@ translate = QtCore.QCoreApplication.translate
#Template Modules
+
#Our modules
import engine.api as api
from midiinput.stepmidiinput import stepMidiInput #singleton instance
@@ -198,6 +199,7 @@ class MenuActionDatabase(object):
self.mainWindow.ui.actionWiden_Score_View : self.mainWindow.widen,
self.mainWindow.ui.actionShrink_Score_View : self.mainWindow.shrinken,
self.mainWindow.ui.actionSave : api.save,
+ self.mainWindow.ui.actionQuit : self.mainWindow.nsmClient.serverSendExitToSelf,
self.mainWindow.ui.actionShow_PDF : api.showPDF,
self.mainWindow.ui.actionExport_to_Ly : self.exportLy,
@@ -349,6 +351,7 @@ class MenuActionDatabase(object):
self.mainWindow.ui.actionWiden_Score_View,
self.mainWindow.ui.actionShrink_Score_View,
self.mainWindow.ui.actionSave,
+ self.mainWindow.ui.actionQuit,
]