mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 11:51:41 -07:00
Close all windows, if there is no main window
This commit is contained in:
parent
f1d5bc38dc
commit
1cd107965c
1 changed files with 5 additions and 1 deletions
|
|
@ -401,7 +401,11 @@ class CuraApplication(QtApplication):
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def closeApplication(self):
|
def closeApplication(self):
|
||||||
Logger.log("i", "Close application")
|
Logger.log("i", "Close application")
|
||||||
self._main_window.close()
|
main_window = self.getMainWindow()
|
||||||
|
if main_window is not None:
|
||||||
|
main_window.close()
|
||||||
|
else:
|
||||||
|
self.closeAllWindows()
|
||||||
|
|
||||||
## A reusable dialogbox
|
## A reusable dialogbox
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue