From 3f012f4bdbfc70cae16a40f4a22f3d635c2b0a4a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 15 Jun 2018 20:22:07 +0200 Subject: Cleanup: Don't clear WA_QuitOnClose attribute on dialogs According to Qt's documentation, the application exits if all windows with the WA_QuitOnClose attribute are closed. This attribute was cleared for three dialogs. This seems not necessary because: 1) The application can't be closed as long as the modal dialog is shown. 2) The flag only concerns primary windows, which these are not. See: http://doc.qt.io/qt-5/qguiapplication.html#quitOnLastWindowClosed-prop Signed-off-by: Berthold Stoeger --- desktop-widgets/divecomputermanagementdialog.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets/divecomputermanagementdialog.cpp') diff --git a/desktop-widgets/divecomputermanagementdialog.cpp b/desktop-widgets/divecomputermanagementdialog.cpp index 0835abd6c..5a54bc953 100644 --- a/desktop-widgets/divecomputermanagementdialog.cpp +++ b/desktop-widgets/divecomputermanagementdialog.cpp @@ -28,7 +28,6 @@ void DiveComputerManagementDialog::init() DiveComputerManagementDialog *DiveComputerManagementDialog::instance() { static DiveComputerManagementDialog *self = new DiveComputerManagementDialog(MainWindow::instance()); - self->setAttribute(Qt::WA_QuitOnClose, false); return self; } -- cgit v1.2.3-70-g09d2