summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-07-31 01:22:19 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-07-31 01:22:19 +0200
commit43aef88835fd1ffbbfb18c810a869b18b5990f55 (patch)
treee2493a7400458ea62080353d522b9d3e04adb28f /src/mainview.cpp
parentApplying Eelko's patch against XSS vulnerability (diff)
downloadrekonq-43aef88835fd1ffbbfb18c810a869b18b5990f55.tar.xz
Don't save sessions && closed tabs if Private Browsing is enabled
BUG:246268
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index a771e3d7..335bcfae 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -494,7 +494,9 @@ void MainView::closeTab(int index, bool del)
return;
}
- if (!tab->url().isEmpty())
+ if (!tab->url().isEmpty()
+ && !QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)
+ )
{
QString title = tab->view()->title();
QString url = tab->url().prettyUrl();