[gnome-software/wip/hughsie/unique-id-hash: 2/5] trivial: Invalidate the unique-id if the kind changes



commit 63b047d7ad29e0d463c93c5c59db25a8af7c251a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 25 15:51:35 2016 +0100

    trivial: Invalidate the unique-id if the kind changes
    
    Although, as the previous patch exists this should not happen any more.

 src/gs-app.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 5acbc43..7376ea5 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -935,6 +935,9 @@ gs_app_set_kind (GsApp *app, AsAppKind kind)
 
        app->kind = kind;
        gs_app_queue_notify (app, "kind");
+
+       /* no longer valid */
+       app->unique_id_valid = FALSE;
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]