From 4ed08bb0a8195746c333dabbdb9da3400d174296 Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Wed, 16 Dec 2015 08:13:05 -0800 Subject: Fix typo in the folder name of the cookies Change-Id: I9e1acaa0dbd31978730dae33ebb517f467f8df49 Reviewed-by: Allan Sandfeld Jensen --- src/core/browser_context_adapter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3