From 6b2f3d060447a684306c16d244f4242498721c64 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 2 May 2019 15:47:35 -0700 Subject: [PATCH] UI: Fix theme showing incorrect theme when on Dark --- UI/window-basic-settings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index 00389307d..b66f65ea3 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -1029,12 +1029,12 @@ void OBSBasicSettings::LoadThemeList() ui->theme->addItem(name); } - const char *themeName = App()->GetTheme(); + std::string themeName = App()->GetTheme(); - if (strcmp(themeName, DEFAULT_THEME) == 0) + if (themeName == DEFAULT_THEME) themeName = QT_TO_UTF8(defaultTheme); - int idx = ui->theme->findText(themeName); + int idx = ui->theme->findText(themeName.c_str()); if (idx != -1) ui->theme->setCurrentIndex(idx); }