Minor fix for users that don't have e_config->default_desktop_bg set

SVN revision: 19699
This commit is contained in:
Christopher Michael 2006-01-10 15:37:44 +00:00
parent 5431156f1e
commit c88f87fb83
1 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,15 @@ static void
_fill_data(CFData *cfdata)
{
cfdata->bg_method = BG_SET_DEFAULT_DESK;
cfdata->current_file = strdup(e_config->desktop_default_background);
if (e_config->desktop_default_background)
{
cfdata->current_file = strdup(e_config->desktop_default_background);
}
else
{
cfdata->current_file = NULL;
}
/* TODO: get default bg */
}