From 2875afb284d3ea1b7225338b6b682df0a505b6e2 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 9 Sep 2017 09:26:37 +0500 Subject: [PATCH] Don't try to load the "i18n/i18n_en.qm". --- src/ui/translationmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/translationmanager.cpp b/src/ui/translationmanager.cpp index f42e7949..ce3fb418 100644 --- a/src/ui/translationmanager.cpp +++ b/src/ui/translationmanager.cpp @@ -130,6 +130,9 @@ void TranslationManager::installTranslator(int language, const QLocale &locale) QTranslator *TranslationManager::loadTranslator(int language, const QLocale &locale) { + if (!language) + return nullptr; + // Load .qm file QTranslator *translator = new QTranslator(this); translator->load(TRANSLATION_FILE_PREFIX + locale.name(), i18nDir());