Quit application when last main window is closed (fixes #1079).

master
Torsten Paul 2014-12-23 19:05:53 +01:00
parent 0801fc432d
commit d296d93ddc
1 changed files with 5 additions and 0 deletions

View File

@ -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()