diff options
author | Michal Klocek <michal.klocek@qt.io> | 2023-12-15 17:26:02 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-02-26 18:01:18 +0000 |
commit | 4e76b8dee87b94a693b0ad118785e2bca018573e (patch) | |
tree | f3b8b75eb6e25ff4ca0b7a78b5a93c974866c3f9 | |
parent | 7d6b43b7bc05ec17111836cc890f6692888f0c1c (diff) |
Fix error message when dictionary not found
When there is no existing candidate still return something
so error message can be thrown.
Change-Id: Iab71e089fec8ab88e36395474b6e5d4ecfa1ff4c
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
(cherry picked from commit d86ddb74877342d82c36cb9f47cccb53bf339e23)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 49bdd5486dd962fa3bc0c7cba30737c36ddfdff0)
-rw-r--r-- | src/core/web_engine_library_info.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp index c03c9a3b2..e71153899 100644 --- a/src/core/web_engine_library_info.cpp +++ b/src/core/web_engine_library_info.cpp @@ -284,6 +284,12 @@ QString dictionariesPath() break; } } + + if (potentialDictionariesPath.isEmpty()) { + // return path for error message + potentialDictionariesPath = QCoreApplication::applicationDirPath() % QDir::separator() + % QLatin1String("qtwebengine_dictionaries"); + } } return potentialDictionariesPath; |