From 044ddd5d432aa94ff30851407b8c81875c655a83 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Oct 2019 12:42:38 +0100 Subject: [PATCH] save complete: ctx_find_content: compare contents, not hlcache_handles There can be multiple hlcache_handles per sharable content. --- desktop/save_complete.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/save_complete.c b/desktop/save_complete.c index 1ecb31384..d7a02ae2f 100644 --- a/desktop/save_complete.c +++ b/desktop/save_complete.c @@ -147,7 +147,8 @@ save_complete_ctx_has_content(save_complete_ctx *ctx, save_complete_entry *entry; for (entry = ctx->list; entry != NULL; entry = entry->next) { - if (entry->content == content) + if (hlcache_handle_get_content(entry->content) == + hlcache_handle_get_content(content)) return true; }