mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Handle empty locale names quickly
This commit is contained in:
parent
27bc64e63f
commit
df5a0d25bc
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue