From cf7d847a331c20f1b58bb4b58a6147023902ec55 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 3 Jul 2019 00:15:31 +0200 Subject: [PATCH] Fix saving "don't show again" when not using frameworksintegration When not using frameworks integration we only get "false" in shouldBeShownYesNo when the saved value is yes/no so set it to yes. Also it was a bit weird before because we were using an uninitialized value, so this is much better :) BUGS: 409430 --- shell/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index 19fdc311f..c2ebce9ac 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -573,7 +573,7 @@ bool Shell::queryClose() if (m_tabs.count() > 1) { const QString dontAskAgainName = "ShowTabWarning"; - KMessageBox::ButtonCode dummy; + KMessageBox::ButtonCode dummy = KMessageBox::Yes; if (shouldBeShownYesNo(dontAskAgainName, dummy)) { QDialog *dialog = new QDialog(this);