No longer try to load plug-ins if none are enabled

This commit is contained in:
Pierre Pronchery 2012-08-26 00:55:35 +00:00
parent a45179ad65
commit 0051c9ffd9

View File

@ -523,7 +523,8 @@ static gboolean _new_idle(gpointer data)
/* default to the "systray" plug-in if nothing is configured */
if((plugins = config_get(phone->config, NULL, "plugins")) == NULL)
plugins = "systray";
_idle_load_plugins(phone, plugins);
if(strlen(plugins) > 0)
_idle_load_plugins(phone, plugins);
/* try to go online */
phone_event_type(phone, PHONE_EVENT_TYPE_STARTING);
return FALSE;