diff options
Diffstat (limited to 'libappstream-glib/as-app.c')
-rw-r--r-- | libappstream-glib/as-app.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 85297a9..27a6f55 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -1651,11 +1651,13 @@ as_app_set_id (AsApp *app, const gchar *id) return; } + /* save full ID */ g_free (priv->id); - g_free (priv->id_filename); - priv->id = g_strdup (id); - priv->id_filename = g_strdup (priv->id); + + /* save filename */ + g_free (priv->id_filename); + priv->id_filename = g_strdup (as_app_get_id_no_prefix (app)); g_strdelimit (priv->id_filename, "&<>", '-'); tmp = g_strrstr_len (priv->id_filename, -1, "."); if (tmp != NULL) |