Procházet zdrojové kódy

yuzu/configuration/configure_general: Specify string conversions explicitly

Allows the general configuration code to successfully compile with
implicit string conversions disabled.
Lioncash před 7 roky
rodič
revize
7e650088dd
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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);
     ui->setupUi(this);
 
 
     for (const auto& theme : UISettings::themes) {
     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();
     this->setConfiguration();