BUGFIX: The selected theme was not necessarilly used.
This commit is contained in:
@@ -312,7 +312,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
Glib::RefPtr<Glib::Regex> regex = Glib::Regex::create(THEMEREGEXSTR, Glib::RegexCompileFlags::REGEX_CASELESS);
|
Glib::RefPtr<Glib::Regex> regex = Glib::Regex::create(THEMEREGEXSTR, Glib::RegexCompileFlags::REGEX_CASELESS);
|
||||||
Glib::ustring filename = Glib::build_filename(argv0, "themes", options.theme + ".css");
|
Glib::ustring filename = Glib::build_filename(argv0, "themes", options.theme + ".css");
|
||||||
if (!regex->match(options.theme) || !Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) {
|
if (!regex->match(options.theme + ".css") || !Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) {
|
||||||
options.theme = "RawTherapee-GTK";
|
options.theme = "RawTherapee-GTK";
|
||||||
// We're not testing GTK_MAJOR_VERSION == 3 here, since this branch requires Gtk3 only
|
// We're not testing GTK_MAJOR_VERSION == 3 here, since this branch requires Gtk3 only
|
||||||
if (GTK_MINOR_VERSION < 20) {
|
if (GTK_MINOR_VERSION < 20) {
|
||||||
|
Reference in New Issue
Block a user