e-modules/engage: fix segv, dont show config dialog if bar instance does not exist
SVN revision: 58998
This commit is contained in:
parent
8cb35d0cfa
commit
a142fe18b7
|
@ -72,14 +72,16 @@ ngi_configure_module(Config_Item *ci)
|
|||
Config_Item *ci2;
|
||||
int i = 0;
|
||||
|
||||
if (!ci->ng)
|
||||
return;
|
||||
|
||||
if (ci->config_dialog)
|
||||
return;
|
||||
|
||||
EINA_LIST_FOREACH(ngi_config->items, l, ci2)
|
||||
if (ci == ci2)
|
||||
break;
|
||||
else
|
||||
i++;
|
||||
else i++;
|
||||
|
||||
snprintf(path, sizeof(path), "extensions/engage::%d", i);
|
||||
if (e_config_dialog_find("E", path))
|
||||
|
|
Loading…
Reference in New Issue