https://bugs.kde.org/show_bug.cgi?id=433350
Bug ID: 433350 Summary: 'reread metadata from file' don't clean up ImageProperties table if the related fields don't exist anymore in the file Product: digikam Version: 7.2.0 Platform: Manjaro OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Database-Scan Assignee: digikam-bugs-n...@kde.org Reporter: digi...@donaflor.fr Target Milestone: --- SUMMARY 'reread metadata from file' only refresh Location fields (sublocation, city, state, country) if at least one of them is present in the file. STEPS TO REPRODUCE 1. open item/edit metadata' dialog for a file 2. set sublocation, city and state of an image to some values (let say A, B, C resp.) 3. set title to some value (let say D) 4. remove all xmp metadata of this file with an external tool (exiftool for example) 5. do 'Item/Reread metadata from file' for the file 6. check values of sublocation, city, state, title into Captions panel OBSERVED RESULT title=empty (ok) sublocation=A, city=B and state=C (nok) EXPECTED RESULT title=empty sublocation=empty, city=empty, and state=empty NB. If you do the same process removing all location fields except at least one of them (city for example), the observed result is ok (i.e. sublocation and state are empty and city has the value, eventually new, present in the file). SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro/KDE KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.