From eaa58133caf0a57df906a37bc1ef4ca00925ba1d Mon Sep 17 00:00:00 2001 From: Andrea Di Menna Date: Fri, 30 Sep 2011 23:34:28 +0200 Subject: Get sure private browing action is disabled if users refuse it REVIEW: 102747 REVIEWED-BY: adjam --- src/application.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/application.cpp b/src/application.cpp index 985de818..63be0f51 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -676,7 +676,11 @@ void Application::setPrivateBrowsingMode(bool b) text, caption, KStandardGuiItem::cont(), KStandardGuiItem::cancel(), i18n("don't ask again")); if (button != KMessageBox::Continue) + { + // The user canceled so we should uncheck the box + _privateBrowsingAction->setChecked(false); return; + } settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, true); _privateBrowsingAction->setChecked(true); -- cgit v1.2.1