[gnome-software/wip/hughsie/unique-id-hash: 2/5] trivial: Invalidate the unique-id if the kind changes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/unique-id-hash: 2/5] trivial: Invalidate the unique-id if the kind changes
- Date: Thu, 25 Aug 2016 16:32:23 +0000 (UTC)
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]