From 39b2f712aab0309e0aec58468251f1dd103c10de Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 3 Sep 2003 23:13:40 +0000 Subject: [PATCH] dont exit when a theme can't be loaded during reconfigure --- openbox/openbox.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openbox/openbox.c b/openbox/openbox.c index 1547bc0f..1490ab73 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -244,9 +244,13 @@ int main(int argc, char **argv) } /* load the theme specified in the rc file */ - ob_rr_theme = RrThemeNew(ob_rr_inst, config_theme); - if (ob_rr_theme == NULL) - ob_exit_with_error("Unable to load a theme."); + { + RrTheme *theme; + if ((theme = RrThemeNew(ob_rr_inst, config_theme))) + ob_rr_theme = theme; + if (ob_rr_theme == NULL) + ob_exit_with_error("Unable to load a theme."); + } moveresize_startup(reconfigure); screen_startup(reconfigure); -- 2.45.2