[welcome] Don't use combobox itemdata for locale information

This commit is contained in:
Adriaan de Groot 2019-04-19 10:24:10 +02:00
parent e5d1c0ae27
commit 53fd1590b8

View File

@ -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 );