mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06: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()
|
||||
def closeApplication(self):
|
||||
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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue