diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-23 13:11:58 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-29 09:17:28 +0200 |
commit | f341988f451c6ba1fc3b8da765c00d1d64eaff30 (patch) | |
tree | 407e1f7d121c19d20006ec7e143210a0aea7ef92 /src/core/pref_service_adapter.cpp | |
parent | 1a26c0ace958c3604c8a751134429dd38168a1a1 (diff) |
Return valid path in Profile::GetPath() for incognito profiles
Parts of Chromium depends on it for temporary directories it creates.
This also changes the logic of depending on it being empty as indicating
an in memory profile, so it required a bit of cleaning up.
Note this does subtly change the return value of off-the-record profiles.
Task-number: QTBUG-62957
Change-Id: Iec6e24556128c515fce27803171a766b8a9d92e3
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/pref_service_adapter.cpp')
-rw-r--r-- | src/core/pref_service_adapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/pref_service_adapter.cpp b/src/core/pref_service_adapter.cpp index 4ded70d07..65dfb73ee 100644 --- a/src/core/pref_service_adapter.cpp +++ b/src/core/pref_service_adapter.cpp @@ -85,7 +85,7 @@ void PrefServiceAdapter::setup(const ProfileAdapter &profileAdapter) WebEngineContext::commandLine())); QString userPrefStorePath = profileAdapter.dataPath(); - if (userPrefStorePath.isEmpty() || profileAdapter.isOffTheRecord()) { + if (profileAdapter.isOffTheRecord() || profileAdapter.storageName().isEmpty()) { factory.set_user_prefs(new InMemoryPrefStore); } else { userPrefStorePath += QDir::separator(); |