diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-31 01:22:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-31 01:22:19 +0200 |
commit | 43aef88835fd1ffbbfb18c810a869b18b5990f55 (patch) | |
tree | e2493a7400458ea62080353d522b9d3e04adb28f /src/sessionmanager.cpp | |
parent | Applying Eelko's patch against XSS vulnerability (diff) | |
download | rekonq-43aef88835fd1ffbbfb18c810a869b18b5990f55.tar.xz |
Don't save sessions && closed tabs if Private Browsing is enabled
BUG:246268
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r-- | src/sessionmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp index 8832878b..fbab2d82 100644 --- a/src/sessionmanager.cpp +++ b/src/sessionmanager.cpp @@ -64,6 +64,10 @@ void SessionManager::saveSession() if (!m_safe) return; m_safe = false; + + if( QWebSettings::globalSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) ) + return; + QFile sessionFile(m_sessionFilePath); if (!sessionFile.open(QFile::WriteOnly | QFile::Truncate)) { |