Fixed theme selection

This commit is contained in:
Beep6581
2016-03-07 18:49:09 +01:00
parent a563427d59
commit 0ce06b691f
2 changed files with 1 additions and 32 deletions

View File

@@ -2014,19 +2014,6 @@ void Preferences::switchThemeTo(Glib::ustring newTheme)
printf("Error: Can't load css file \"%s\"\n", filename.c_str());
loaded = false;
}
// TODO remove rtcommon
if (!loaded && options.theme != "rtcommon") {
try {
printf("Trying with \"rtcommon.css\"\n");
filename = argv0 + "/themes/rtcommon.css";
css->load_from_path (filename);
} catch (Glib::Error &err) {
printf("Error: Can't load css file \"rtcommon.css\"\nMessage: %s\n", err.what().c_str());
} catch (...) {
printf("Error: Can't load css file \"%s\"\n", filename.c_str());
}
}
}
void Preferences::workflowUpdate ()