diff options
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 6b2f76eba..8ca15f7aa 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -850,6 +850,13 @@ QByteArray hashFile(const QString filename) return hash.result(); } +void learnHash(struct picture *picture, QByteArray hash) +{ + free(picture->hash); + hashOf[QString(picture->filename)] = hash; + picture->hash = strdup(hash.toHex()); +} + QString localFilePath(const QString originalFilename) { return localFilenameOf[hashOf[originalFilename]]; |