Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_modules.c Log Message: Small bug fix in modules config dialog. -When enabling a module, if e_module_enable fails, set proper state and get out. Also, do not set cm->state = MOD_ENABLED unless the enable was actually successful. -When disabling a module, only set state to UNLOADED if e_module_disable worked. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_modules.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- e_int_config_modules.c 7 Jun 2006 21:42:13 -0000 1.35 +++ e_int_config_modules.c 22 Jun 2006 20:17:23 -0000 1.36 @@ -190,15 +190,22 @@ switch (cfdata->state) { case MOD_ENABLED: - if (!m->enabled) e_module_enable(m); + if (!m->enabled) + { + if (!e_module_enable(m)) + { + cm->state = MOD_UNLOADED; + break; + } + } if (m->enabled) { if (m->func.config) e_widget_disabled_set(cfdata->gui.configure, 0); if (m->func.about) e_widget_disabled_set(cfdata->gui.about, 0); + cm->state = MOD_ENABLED; } - cm->state = MOD_ENABLED; break; case MOD_UNLOADED: if (m) @@ -210,8 +217,8 @@ e_module_disable(m); e_object_del(E_OBJECT(m)); e_config_save_queue(); + cm->state = MOD_UNLOADED; } - cm->state = MOD_UNLOADED; break; } } Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs