summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/history/historymanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp
index 7aded714..097f9ee2 100644
--- a/src/history/historymanager.cpp
+++ b/src/history/historymanager.cpp
@@ -455,6 +455,9 @@ KCompletion * HistoryManager::completionObject() const
void HistoryManager::addDownload(const QString &srcUrl, const QString &destUrl)
{
+ QWebSettings *globalSettings = QWebSettings::globalSettings();
+ if (globalSettings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ return;
QString downloadFilePath = KStandardDirs::locateLocal("appdata" , "downloads");
QFile downloadFile(downloadFilePath);
if ( !downloadFile.open(QFile::WriteOnly | QFile::Append) )