[welcome] Don't use combobox itemdata for locale information
This commit is contained in:
parent
e5d1c0ae27
commit
53fd1590b8
@ -177,7 +177,7 @@ WelcomePage::initLanguages()
|
||||
this,
|
||||
[&]( int newIndex )
|
||||
{
|
||||
QLocale selectedLocale = ui->languageWidget->itemData( newIndex, Qt::UserRole ).toLocale();
|
||||
const auto& selectedLocale = m_languages->locale( newIndex ).locale();
|
||||
cDebug() << "Selected locale" << selectedLocale;
|
||||
|
||||
QLocale::setDefault( selectedLocale );
|
||||
|
Loading…
Reference in New Issue
Block a user