Default to the "systray" plug-in when none is configured

This commit is contained in:
Pierre Pronchery 2011-09-01 21:43:39 +00:00
parent 473413fd15
commit cbcfe175e9

View File

@ -506,7 +506,9 @@ static gboolean _new_idle(gpointer data)
phone_show_system(phone, FALSE); phone_show_system(phone, FALSE);
phone_show_write(phone, FALSE); phone_show_write(phone, FALSE);
_idle_settings(phone); _idle_settings(phone);
if((plugins = config_get(phone->config, NULL, "plugins")) != NULL) /* 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); _idle_load_plugins(phone, plugins);
/* try to go online */ /* try to go online */
memset(&event, 0, sizeof(event)); memset(&event, 0, sizeof(event));