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:
parent
754cf172f5
commit
dcb28aad2a
@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem *self,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
app = _shell_app_new (info);
|
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;
|
return app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user