don't crash in stupid e_module dialog hack

This commit is contained in:
Mike Blumenkrantz 2015-01-30 15:49:15 -05:00
parent 4aa4c64508
commit 566591581b
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ _e_module_dialog_disable_show(const char *title, const char *body, E_Module *m)
/* FIXME: Stupid hack for ELM_WIN_DIALOG_BASIC not working in wayland */
#warning REMOVE STUPID ELM HACK FOR WAYLAND BEFORE RELEASE
if (e_comp->comp_type != E_PIXMAP_TYPE_WL)
if (e_comp && e_comp->comp_type != E_PIXMAP_TYPE_WL)
dia = e_dialog_new(NULL, "E", "_module_unload_dialog");
else
dia = e_dialog_normal_win_new(NULL, "E", "_module_unload_dialog");