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
|
#endif
|
||||||
delete this->thrownTogetherRenderer;
|
delete this->thrownTogetherRenderer;
|
||||||
MainWindow::getWindows()->remove(this);
|
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()
|
void MainWindow::showProgress()
|
||||||
|
|
Loading…
Reference in New Issue