From 6e7d006b0e7735ab4bcc4e59ede4f4198735e0a4 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 23 Sep 2022 18:40:01 +0100 Subject: [PATCH] Delete quit confirmation checkbox --- wfmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wfmain.cpp b/wfmain.cpp index eb39c98..fee1ddb 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -147,6 +147,7 @@ void wfmain::closeEvent(QCloseEvent *event) QApplication::exit(); } QCheckBox *cb = new QCheckBox("Don't ask me again"); + cb->setToolTip("Don't ask me to confirm exit again"); QMessageBox msgbox; msgbox.setText("Are you sure you wish to exit?\n"); msgbox.setIcon(QMessageBox::Icon::Question); @@ -174,6 +175,7 @@ void wfmain::closeEvent(QCloseEvent *event) } else { event->ignore(); } + delete cb; } void wfmain::openRig()