fix detection of changed tags

Wed, 23 Oct 2019 20:10:55 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 23 Oct 2019 20:10:55 +0200
changeset 668
6df5ebb00841
parent 667
6cdcd3e4e368
child 669
152101df336d

fix detection of changed tags

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Sun Oct 20 11:11:22 2019 +0200
+++ b/dav/sync.c	Wed Oct 23 20:10:55 2019 +0200
@@ -2840,7 +2840,10 @@
         // set res->metadata_updated to 1 in case any metadata has changed
         
         // check if tags have changed
-        if(dir->tagconfig && dir->tagconfig->detect_changes && !res->tags_updated) {
+        if(db_res->tags_updated) {
+            res->tags_updated = 1;
+            res->metadata_updated = 1;
+        } else if(dir->tagconfig && dir->tagconfig->detect_changes ) {
             UcxBuffer *tags = sync_get_file_tag_data(dir, res);
             if(tags) {
                 if(db_res->tags_hash) {

mercurial