summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Di Menna <ninniuz@gmail.com>2011-09-30 23:34:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-09-30 23:34:28 +0200
commiteaa58133caf0a57df906a37bc1ef4ca00925ba1d (patch)
treeec409ba733041214cfc71535c6041fa9118451ca
parentThis commit fixes urlbar suggestions handling, (diff)
downloadrekonq-eaa58133caf0a57df906a37bc1ef4ca00925ba1d.tar.xz
Get sure private browing action is disabled if users refuse it
REVIEW: 102747 REVIEWED-BY: adjam
-rw-r--r--src/application.cpp4
1 files changed, 4 insertions, 0 deletions
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);