[shotwell] Trigger keyword update when comment changes



commit 437714de31aec97f25928bd93331ae4aad1e9514
Author: Jens Georg <mail jensge org>
Date:   Sun Nov 26 21:34:52 2017 +0100

    Trigger keyword update when comment changes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729857

 src/MediaDataRepresentation.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/MediaDataRepresentation.vala b/src/MediaDataRepresentation.vala
index 1638fac..f4b9f7d 100644
--- a/src/MediaDataRepresentation.vala
+++ b/src/MediaDataRepresentation.vala
@@ -59,7 +59,9 @@ public abstract class MediaSource : ThumbnailSource, Indexable {
     protected override void notify_altered(Alteration alteration) {
         Alteration local = alteration;
         
-        if (local.has_detail("metadata", "name") || local.has_detail("backing", "master")) {
+        if (local.has_detail("metadata", "name") ||
+            local.has_detail("metadata", "comment") ||
+            local.has_detail("backing", "master")) {
             update_indexable_keywords();
             local = local.compress(new Alteration("indexable", "keywords"));
         }


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