Explorar o código

yuzu/configuration/configure_general: Specify string conversions explicitly

Allows the general configuration code to successfully compile with
implicit string conversions disabled.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
7e650088dd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/yuzu/configuration/configure_general.cpp

+ 2 - 1
src/yuzu/configuration/configure_general.cpp

@@ -14,7 +14,8 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent)
     ui->setupUi(this);
 
     for (const auto& theme : UISettings::themes) {
-        ui->theme_combobox->addItem(theme.first, theme.second);
+        ui->theme_combobox->addItem(QString::fromUtf8(theme.first),
+                                    QString::fromUtf8(theme.second));
     }
 
     this->setConfiguration();