]> Dogcows Code - chaz/openbox/commitdiff
dont exit when a theme can't be loaded during reconfigure
authorDana Jansens <danakj@orodu.net>
Wed, 3 Sep 2003 23:13:40 +0000 (23:13 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 3 Sep 2003 23:13:40 +0000 (23:13 +0000)
openbox/openbox.c

index 1547bc0f358a71c6e76f4da5644af2e1641c83a6..1490ab7305afe1204a27b1f09e60b2cd5e4b3067 100644 (file)
@@ -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);
This page took 0.03009 seconds and 4 git commands to generate.