Use isEmpty instead of 0 length check

This commit is contained in:
Philipp David 2022-01-13 08:29:50 +01:00
parent 236c0166f6
commit 126e6d13aa
No known key found for this signature in database
GPG Key ID: 967A5D5EB5071577

View File

@ -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;
}