Added method to close the application (after clicking quit button) to prevent loss of custom material

CURA-3298
This commit is contained in:
alekseisasin 2017-08-02 16:32:09 +02:00
parent b43acf5b18
commit 153d1f2d0c
2 changed files with 7 additions and 1 deletions

View file

@ -367,6 +367,12 @@ class CuraApplication(QtApplication):
def _onEngineCreated(self):
self._engine.addImageProvider("camera", CameraImageProvider.CameraImageProvider())
## The "Quit" button click event handler.
@pyqtSlot()
def closeApplication(self):
Logger.log("i", "Close application")
self._main_window.close()
## A reusable dialogbox
#
showMessageBox = pyqtSignal(str, str, str, str, int, int, arguments = ["title", "text", "informativeText", "detailedText", "buttons", "icon"])