[graphics/digikam] core/libs/metadataengine/engine: no fallback to ExifTool when sidecar support is enabled for read-only files

Maik Qualmann <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ff8bb5c757286380c340c7c855355a305a7069d4 by Maik Qualmann.
Committed on 09/08/2026 at 18:02.
Pushed by mqualmann into branch 'master'.

no fallback to ExifTool when sidecar support is enabled for read-only files

M  +5    -0    core/libs/metadataengine/engine/metaengine_p.cpp

https://invent.kde.org/graphics/digikam/-/commit/ff8bb5c757286380c340c7c855355a305a7069d4

diff --git a/core/libs/metadataengine/engine/metaengine_p.cpp b/core/libs/metadataengine/engine/metaengine_p.cpp
index 2445654b0b..fac08d180d 100644
--- a/core/libs/metadataengine/engine/metaengine_p.cpp
+++ b/core/libs/metadataengine/engine/metaengine_p.cpp
@@ -465,6 +465,11 @@ bool MetaEngine::Private::saveUsingExiv2(const QFileInfo& finfo,
             qCDebug(DIGIKAM_METAENGINE_LOG) << "Writing metadata with Exiv2 is not supported for file"
                                             << finfo.fileName();
 
+            if (metadataWritingMode == WRITE_TO_SIDECAR_ONLY_FOR_READ_ONLY_FILES)
+            {
+                return false;
+            }
+
             return saveUsingExifTool(finfo, modTime);
         }
         else if (!wroteEXIF || !wroteIPTC || !wroteXMP)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.