diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2015-12-16 08:13:05 -0800 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-04-03 21:57:41 +0000 |
commit | 4ed08bb0a8195746c333dabbdb9da3400d174296 (patch) | |
tree | e667fe60f4830b59672122486e918e09b42afa31 /src | |
parent | 004205323497bc50674133aa3c915d9284ccd266 (diff) |
Fix typo in the folder name of the cookies
Change-Id: I9e1acaa0dbd31978730dae33ebb517f467f8df49
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/browser_context_adapter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/browser_context_adapter.cpp b/src/core/browser_context_adapter.cpp index 52674e8bd..d394cd302 100644 --- a/src/core/browser_context_adapter.cpp +++ b/src/core/browser_context_adapter.cpp @@ -221,8 +221,13 @@ QString BrowserContextAdapter::cookiesPath() const if (m_offTheRecord) return QString(); QString basePath = dataPath(); - if (!basePath.isEmpty()) - return basePath % QLatin1String("/Coookies"); + if (!basePath.isEmpty()) { + // This is a typo fix. We still need the old path in order to avoid breaking migration. + QDir coookiesFolder(basePath % QLatin1String("/Coookies")); + if (coookiesFolder.exists()) + return coookiesFolder.path(); + return basePath % QLatin1String("/Cookies"); + } return QString(); } |