Bug 518046 - AssignCaption tool : caption/title disappear after restart
Summary: AssignCaption tool : caption/title disappear after restart
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-AssignCaptions (other bugs)
Version First Reported In: 9.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-23 13:39 UTC by fch22
Modified: 2026-03-24 07:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.1.0
Sentry Crash Report:


Attachments
CaptionsValueToString.patch (5.13 KB, patch)
2026-03-23 21:19 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
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