diff options
-rw-r--r-- | qthelper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index a963ad73f..c74dba647 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1148,9 +1148,11 @@ void updateHash(struct picture *picture) { void hashPicture(struct picture *picture) { + char *oldHash = copy_string(picture->hash); learnHash(picture, hashFile(QString(picture->filename))); - mark_divelist_changed((true)); - + if (!same_string(picture->hash, "") && !same_string(picture->hash, oldHash)) + mark_divelist_changed((true)); + free(oldHash); } extern "C" void cache_picture(struct picture *picture) |