MainWindow: close all windows once we close the main one

This is useful if we have more non-modal windows and we want
them simply to close with the main one without explicitly
creating class member variables to point to such instances.

A practical example would be the debug window created in
ProfileWidget2() (diveDepthTableView) which holds
the depth profile values.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2014-03-11 18:31:01 +02:00 committed by Dirk Hohndel
parent 6e4466aa0a
commit b382228b7d

View file

@ -651,6 +651,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
}
event->accept();
writeSettings();
QApplication::closeAllWindows();
}
DiveListView *MainWindow::dive_list()