mirror of https://github.com/vitalif/openscad
Quit application when last main window is closed (fixes #1079).
parent
0801fc432d
commit
d296d93ddc
|
@ -679,6 +679,11 @@ MainWindow::~MainWindow()
|
|||
#endif
|
||||
delete this->thrownTogetherRenderer;
|
||||
MainWindow::getWindows()->remove(this);
|
||||
if (MainWindow::getWindows()->size() == 0) {
|
||||
// Quit application even in case some other windows like
|
||||
// Preferences are still open.
|
||||
qApp->quit();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::showProgress()
|
||||
|
|
Loading…
Reference in New Issue