diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-06-28 15:20:42 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-28 20:23:59 +0800 |
commit | 880b8394d2b063c1bbd6597c2cb6c51f0a1d66c1 (patch) | |
tree | f863c91877216d29ed4017cd0c607e230d4b075d /qt-ui/downloadfromdivecomputer.cpp | |
parent | 233e245b78e98c9bb723c9b347b43a6c1a1a6843 (diff) | |
download | subsurface-880b8394d2b063c1bbd6597c2cb6c51f0a1d66c1.tar.gz |
Close child windows and dialogs with main window
Most child windows should be closed with the main application
window otherwise if left open and if making specific
modifictions could potentially cause a SIGSEGV.
To solve that we mark all custom windows/dialogs with
the Qt::WA_QuitOnClose attribute on instance creation.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index f3cd45c71..ba079e6dd 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -37,6 +37,7 @@ namespace DownloadFromDcGlobal{ DownloadFromDCWidget *DownloadFromDCWidget::instance() { static DownloadFromDCWidget *dialog = new DownloadFromDCWidget(); + dialog->setAttribute(Qt::WA_QuitOnClose, false); return dialog; } |