diff options
author | Andrea Di Menna <ninniuz@gmail.com> | 2011-09-30 23:34:28 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-09-30 23:34:28 +0200 |
commit | eaa58133caf0a57df906a37bc1ef4ca00925ba1d (patch) | |
tree | ec409ba733041214cfc71535c6041fa9118451ca /src | |
parent | This commit fixes urlbar suggestions handling, (diff) | |
download | rekonq-eaa58133caf0a57df906a37bc1ef4ca00925ba1d.tar.xz |
Get sure private browing action is disabled if users refuse it
REVIEW: 102747
REVIEWED-BY: adjam
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 4 |
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); |