Use default theme if options file sets theme to nothing, "Theme=", fixes #2937

This commit is contained in:
Beep6581
2015-10-17 16:13:55 +02:00
parent 84a9c2c664
commit 26b5d4f25e

View File

@@ -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<Glib::ustring> rcfiles;
rcfiles.push_back (argv0 + "/themes/" + options.theme + ".gtkrc");