summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-12-15 17:26:02 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-26 08:39:21 +0000
commit49bdd5486dd962fa3bc0c7cba30737c36ddfdff0 (patch)
tree7f9707d6b10828671fba7dd179ff558b3f4ec7c9
parentc503b50b189c7446b91edfede083100b206370fb (diff)
Fix error message when dictionary not found
When there is no existing candidate still return something so error message can be thrown. Pick-to: 6.6 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>
-rw-r--r--src/core/web_engine_library_info.cpp6
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;