Bug 518046

Summary: AssignCaption tool : caption/title disappear after restart
Product: [Applications] digikam Reporter: fch22 <frederic.chaume>
Component: Plugin-Bqm-AssignCaptionsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, frederic.chaume, metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 9.1.0
Sentry Crash Report:
Attachments: CaptionsValueToString.patch

Description fch22 2026-03-23 13:39:29 UTC
I have created some workflow in BQM including the base tools "assign caption"
The idea is to store some information during the execution of the job.
But I have a concern using it:
 I created a job with the text "caption1 text" in the "assign caption" tool. 
Execution is correct, but when I restart DK, the "caption1 text"  has disappeared from the "assign caption" tools of the job. My expectation is to get the "caption1 text" available for any further run of the job.
Comment 1 Maik Qualmann 2026-03-23 21:19:14 UTC
Created attachment 190942 [details]
CaptionsValueToString.patch

First idea to copy the caption values ​​into a string so that they are saved as a QDomElement.

Maik
Comment 2 caulier.gilles 2026-03-23 21:25:17 UTC
Hi Maik,

The patch look good. 

Note : The same issue exists for the title map to stream with the DOM hierarchy.

Gilles
Comment 3 Maik Qualmann 2026-03-24 07:41:13 UTC
Git commit 2a48871b7d2447be1dbf89dcf2072cac01d8cfd4 by Maik Qualmann.
Committed on 24/03/2026 at 07:40.
Pushed by mqualmann into branch 'master'.

store CaptionsMap and AltLangMap as string in the queue.xml
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +86   -9    core/dplugins/bqm/metadata/assigncaptions/assigncaptions.cpp
M  +14   -7    core/dplugins/bqm/metadata/assigncaptions/assigncaptions.h

https://invent.kde.org/graphics/digikam/-/commit/2a48871b7d2447be1dbf89dcf2072cac01d8cfd4