From 0051c9ffd931c97861869f955b8ff6b481c7a5a1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 26 Aug 2012 00:55:35 +0000 Subject: [PATCH] No longer try to load plug-ins if none are enabled --- src/phone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phone.c b/src/phone.c index 4f21845..d0b14cf 100644 --- a/src/phone.c +++ b/src/phone.c @@ -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;