Use isEmpty instead of 0 length check
This commit is contained in:
parent
236c0166f6
commit
126e6d13aa
@ -461,7 +461,7 @@ bool TranslationsModel::selectLanguage(QString key)
|
|||||||
QString &langCode = key;
|
QString &langCode = key;
|
||||||
auto langPtr = findLanguage(key);
|
auto langPtr = findLanguage(key);
|
||||||
|
|
||||||
if (langCode.length() == 0)
|
if (langCode.isEmpty())
|
||||||
{
|
{
|
||||||
d->no_language_set = true;
|
d->no_language_set = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user