Another try at a fix for bg close. Try to get the border of the import dialog to see if it exists or not, before trying to delete it.

SVN revision: 19973
This commit is contained in:
Christopher Michael 2006-01-22 22:45:44 +00:00
parent 3f3c499b32
commit 987791512a
1 changed files with 7 additions and 0 deletions

View File

@ -453,11 +453,18 @@ _bg_file_added(void *data, Ecore_File_Monitor *monitor, Ecore_File_Event event,
static int
_bg_dialog_close(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
{
E_Dialog *dia;
E_Border *bd;
if (!cfd) return 0;
if (!cfdata) return 0;
if (!cfdata->import) return 1;
if (!cfdata->import->dia) return 1;
dia = cfdata->import->dia;
bd = e_border_find_by_window(dia->win->evas_win);
if (!bd) return 1;
e_object_del(E_OBJECT(cfdata->import->dia));
return 1;
}