summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-08 11:23:21 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-15 16:24:21 +0000
commitba8d31f5513b486add0ffc84836a4062bedf234a (patch)
tree62524240c5c284be2b1c1ca824604b1bdeb49573 /src/core
parent7decc1a4716fbc8315318e3e8635f7aec0be58d6 (diff)
Allow disabling cache of off-the-record profiles
Change-Id: Ib319f46465e9f330ef5f2c7a5b2f6a3d50c33c00 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/browser_context_adapter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/browser_context_adapter.cpp b/src/core/browser_context_adapter.cpp
index 7e9a4e41d..404cfc575 100644
--- a/src/core/browser_context_adapter.cpp
+++ b/src/core/browser_context_adapter.cpp
@@ -334,6 +334,8 @@ void BrowserContextAdapter::setHttpUserAgent(const QString &userAgent)
BrowserContextAdapter::HttpCacheType BrowserContextAdapter::httpCacheType() const
{
+ if (m_httpCacheType == NoCache)
+ return NoCache;
if (isOffTheRecord() || httpCachePath().isEmpty())
return MemoryHttpCache;
return m_httpCacheType;