dont exit when a theme can't be loaded during reconfigure
This commit is contained in:
parent
c20a8d986a
commit
39b2f712aa
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue