mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[welcome] Don't use combobox itemdata for locale information
This commit is contained in:
parent
e5d1c0ae27
commit
53fd1590b8
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ WelcomePage::initLanguages()
|
||||||
this,
|
this,
|
||||||
[&]( int newIndex )
|
[&]( int newIndex )
|
||||||
{
|
{
|
||||||
QLocale selectedLocale = ui->languageWidget->itemData( newIndex, Qt::UserRole ).toLocale();
|
const auto& selectedLocale = m_languages->locale( newIndex ).locale();
|
||||||
cDebug() << "Selected locale" << selectedLocale;
|
cDebug() << "Selected locale" << selectedLocale;
|
||||||
|
|
||||||
QLocale::setDefault( selectedLocale );
|
QLocale::setDefault( selectedLocale );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue