mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6e4466aa0a
commit
b382228b7d
1 changed files with 1 additions and 0 deletions
|
@ -651,6 +651,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
|||
}
|
||||
event->accept();
|
||||
writeSettings();
|
||||
QApplication::closeAllWindows();
|
||||
}
|
||||
|
||||
DiveListView *MainWindow::dive_list()
|
||||
|
|
Loading…
Add table
Reference in a new issue