[libcalamares] Handle empty locale names quickly
This commit is contained in:
parent
27bc64e63f
commit
df5a0d25bc
@ -75,6 +75,10 @@ Label::setLabels( const QString& locale, LabelFormat format )
|
||||
QLocale
|
||||
Label::getLocale( const QString& localeName )
|
||||
{
|
||||
if ( localeName.isEmpty() )
|
||||
{
|
||||
return QLocale();
|
||||
}
|
||||
if ( localeName.contains( "@latin" ) )
|
||||
{
|
||||
QLocale loc( localeName ); // Ignores @latin
|
||||
|
Loading…
Reference in New Issue
Block a user