Fix an assertion when activating apps a second time

This was causing the following critical when running bloatpad twice:
GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
This commit is contained in:
Matthias Clasen 2011-12-11 12:05:23 -05:00
parent f40de4b152
commit 840482658a

View File

@ -494,6 +494,9 @@ g_dbus_action_group_sync (GDBusActionGroup *group,
GVariantIter *iter;
ActionInfo *action;
g_assert (group->actions == NULL);
group->actions = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, action_info_free);
g_variant_get (reply, "(a{s(bgav)})", &iter);
while ((action = action_info_new_from_iter (iter)))
g_hash_table_insert (group->actions, action->name, action);