summaryrefslogtreecommitdiff
path: root/src/tabwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-12-16 17:04:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-16 17:04:37 +0100
commite3b8ece1ce004f2049481ceb668bf05ad3ae99f7 (patch)
treec13e0d67aeca03b1a7f95da346a128eca686676d /src/tabwindow
parentFix download dir choice (diff)
downloadrekonq-e3b8ece1ce004f2049481ceb668bf05ad3ae99f7.tar.xz
"Workaround" cookie management in private browsing mode
From the note in webpage file: I'm sorry I really cannot let KIO work as needed in private browsing mode. The problem is basically cookie related. This way we lose some features in private browsing mode, but we ensure PRIVACY! This change cannot be reverted until a proper fix for KIO (or the right workaround for rekonq) will be found. BUG: 303552
Diffstat (limited to 'src/tabwindow')
-rw-r--r--src/tabwindow/tabwindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 59aa1275..7fa7439d 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -217,10 +217,7 @@ WebWindow *TabWindow::webWindow(int index) const
WebWindow *TabWindow::prepareNewTab(WebPage *page)
{
- WebWindow *tab = new WebWindow(this, page);
-
- if (_isPrivateBrowsing)
- tab->setPrivateBrowsing(true);
+ WebWindow *tab = new WebWindow(this, _isPrivateBrowsing, page);
connect(tab, SIGNAL(titleChanged(QString)), this, SLOT(tabTitleChanged(QString)));