summaryrefslogtreecommitdiff
path: root/shell/shell-app-system.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2013-10-28 14:31:03 +0100
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2013-10-28 14:39:03 +0100
commit13fe7af2bcdb557428ab702e960af381f0833da8 (patch)
tree33f12f0e2751732740508cfceabf0d7b9a816224 /shell/shell-app-system.c
parentad592c81d71c57726b6d0a172b0bc6e05bbcdd43 (diff)
downloadgraynard-13fe7af2bcdb557428ab702e960af381f0833da8.tar.gz
graynard-13fe7af2bcdb557428ab702e960af381f0833da8.zip
app-system: always take the new app info
The app info may have changed so always take the new app info to update the hash table.
Diffstat (limited to 'shell/shell-app-system.c')
-rw-r--r--shell/shell-app-system.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/shell-app-system.c b/shell/shell-app-system.c
index 01aade6..cb783d4 100644
--- a/shell/shell-app-system.c
+++ b/shell/shell-app-system.c
@@ -172,9 +172,7 @@ on_apps_tree_changed_cb (GMenuTree *tree,
GMenuTreeEntry *entry = value;
GDesktopAppInfo *info;
- info = g_hash_table_lookup (self->priv->id_to_info, id);
- if (!info)
- info = gmenu_tree_entry_get_app_info (entry);
+ info = gmenu_tree_entry_get_app_info (entry);
g_hash_table_insert (self->priv->id_to_info, g_strdup (id), g_object_ref (info));
}