From 126e6d13aa59f5c09b4bb3956cbf85ed8ae72fa2 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Thu, 13 Jan 2022 08:29:50 +0100 Subject: [PATCH] Use isEmpty instead of 0 length check --- launcher/translations/TranslationsModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp index 5533c082..bfbe8f58 100644 --- a/launcher/translations/TranslationsModel.cpp +++ b/launcher/translations/TranslationsModel.cpp @@ -461,7 +461,7 @@ bool TranslationsModel::selectLanguage(QString key) QString &langCode = key; auto langPtr = findLanguage(key); - if (langCode.length() == 0) + if (langCode.isEmpty()) { d->no_language_set = true; }