From 26b5d4f25e63c5bfd79d3540d864a5e298194e76 Mon Sep 17 00:00:00 2001 From: Beep6581 Date: Sat, 17 Oct 2015 16:13:55 +0200 Subject: [PATCH] Use default theme if options file sets theme to nothing, "Theme=", fixes #2937 --- rtgui/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtgui/main.cc b/rtgui/main.cc index cc7c3cbe5..5b10dbf7b 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -276,6 +276,10 @@ int main(int argc, char **argv) simpleEditor = true; } + if (options.theme.empty()) { + options.theme = "21-Gray-Gray"; + } + if (!options.useSystemTheme) { std::vector rcfiles; rcfiles.push_back (argv0 + "/themes/" + options.theme + ".gtkrc");