From d1cb3a42f5f928e7fb166bbde4a57581a4934127 Mon Sep 17 00:00:00 2001 From: VodBox Date: Tue, 27 Jun 2017 18:16:08 +1200 Subject: [PATCH] UI: Add backwards compatible theme fallback Closes jp9000/obs-studio#936 --- UI/obs-app.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 01db7146d..6c345a7df 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -738,13 +738,13 @@ bool OBSApp::InitTheme() { const char *themeName = config_get_string(globalConfig, "General", "Theme"); - if (!themeName) themeName = "Default"; - stringstream t; - t << themeName; - return SetTheme(t.str()); + if (strcmp(themeName, "Default") != 0 && SetTheme(themeName)) + return true; + + return SetTheme("Default"); } OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store)