core: Set implicit default agent when first agent registers

This commit is contained in:
Johan Hedberg 2012-12-17 13:02:22 +02:00
parent 39036db684
commit 166931cf49

View File

@ -934,6 +934,9 @@ static DBusMessage *register_agent(DBusConnection *conn,
g_hash_table_replace(agent_list, agent->owner, agent); g_hash_table_replace(agent_list, agent->owner, agent);
if (default_agent == NULL)
set_default_agent(agent);
return dbus_message_new_method_return(msg); return dbus_message_new_method_return(msg);
} }