app-system: Fix the keys in the id_to_app table

The ID that's passed to us isn't usable as a key to store, as it's
probably junk after the method returns. Use the app's storage for
the ID instead.
This commit is contained in:
Jasper St. Pierre 2013-11-03 12:10:00 -05:00
parent 754cf172f5
commit dcb28aad2a

View File

@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem *self,
return NULL;
app = _shell_app_new (info);
g_hash_table_insert (priv->id_to_app, (char *) id, app);
g_hash_table_insert (priv->id_to_app, shell_app_get_id (id), app);
return app;
}