Solving issue #3238: "Fall back to RawTherapee.css when error loading

theme"
This commit is contained in:
Hombre
2016-04-11 23:06:19 +02:00
parent 78170f8030
commit 12c3eb6e01

View File

@@ -310,6 +310,10 @@ int main(int argc, char **argv)
Gtk::Settings::get_for_screen(screen)->property_gtk_application_prefer_dark_theme() = true;
Glib::ustring filename = Glib::build_filename(argv0, "themes", options.theme + ".css");
if (!Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) {
options.theme = "RawTherapee";
filename = Glib::build_filename(argv0, "themes", options.theme + ".css");
}
cssRT = Gtk::CssProvider::create();
try {