Use to .toUTF8() instead of .toStdString().

This commit is contained in:
dfighter1985 2013-05-04 21:55:41 +02:00
parent 29793ee97b
commit ab7d2c1a53

View file

@ -65,7 +65,7 @@ void CGeneralSettingsWidget::save()
{
CSystem &s = CSystem::GetInstance();
s.config.setString( "LanguageCode", languageCodes[ languageComboBox->currentIndex() ].toStdString() );
s.config.setString( "LanguageCode", std::string( languageCodes[ languageComboBox->currentIndex() ].toUtf8() ) );
if( saveConfigOnQuitCheckBox->isChecked() )
s.config.setInt( "SaveConfig", 1 );