diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-14 14:32:55 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-20 09:25:39 +0200 |
commit | c1b328f103b9b444e77637db0c07a41b852aaf23 (patch) | |
tree | b266b8eaa74aa1ede6c42546cbe5b5e45a43c3ee /src | |
parent | 51b024c53ceb43febbded3c14974e9d8f75c1c11 (diff) |
Fix assert on devtools
We must allow file access in the thread as it is off by default
Pick-to: 6.4
Change-Id: Ia73a457c29599b51bd284621644a0088992b6737
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/devtools_frontend_qt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/devtools_frontend_qt.cpp b/src/core/devtools_frontend_qt.cpp index 6cae5ab8b..b4f3f6993 100644 --- a/src/core/devtools_frontend_qt.cpp +++ b/src/core/devtools_frontend_qt.cpp @@ -364,6 +364,7 @@ void DevToolsFrontendQt::CreateJsonPreferences(bool clear) JsonPrefStore *jsonPrefStore = new JsonPrefStore( browserContext->GetPath().Append(FILE_PATH_LITERAL("devtoolsprefs.json"))); // We effectively clear the preferences by not calling ReadPrefs + base::ScopedAllowBlockingForTesting allowBlocking; if (!clear) jsonPrefStore->ReadPrefs(); |