Bug 501862 - Dragging tags to new location no longer has option to merge tags
Summary: Dragging tags to new location no longer has option to merge tags
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (other bugs)
Version First Reported In: 8.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-22 14:05 UTC by Steve Franks
Modified: 2025-09-22 15:48 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.8.0
Sentry Crash Report:


Attachments
attachment-2514479-0.html (1.33 KB, text/html)
2025-03-30 11:41 UTC, Steve Franks
Details
attachment-3096058-0.html (1.31 KB, text/html)
2025-04-02 07:48 UTC, Steve Franks
Details
attachment-3821077-0.html (648 bytes, text/html)
2025-04-05 17:02 UTC, Steve Franks
Details
attachment-3822242-0.html (142 bytes, text/html)
2025-04-05 17:10 UTC, Steve Franks
Details
attachment-304741-0.html (998 bytes, text/html)
2025-04-09 12:40 UTC, Steve Franks
Details
debugview log for moving tag (167.41 KB, text/plain)
2025-04-14 16:44 UTC, Steve Franks
Details
attachment-1848147-0.html (312 bytes, text/html)
2025-04-16 08:04 UTC, Steve Franks
Details
digikam_20250416.LOG (193.21 KB, application/octet-stream)
2025-04-16 08:24 UTC, Steve Franks
Details
attachment-1937005-0.html (927 bytes, text/html)
2025-04-16 17:32 UTC, Steve Franks
Details
debugview log 20250417T1020 for digiKam-8.7.0-20250417T050152-Qt6-Win64-debug (1.78 MB, application/x-zip-compressed)
2025-04-17 09:34 UTC, Steve Franks
Details
attachment-2174299-0.html (1.57 KB, text/html)
2025-04-17 10:37 UTC, Steve Franks
Details
Desktop_20250427T1200.LOG (211.66 KB, application/octet-stream)
2025-04-17 11:09 UTC, Steve Franks
Details
attachment-2354808-0.html (1.16 KB, text/html)
2025-04-17 21:50 UTC, Steve Franks
Details
attachment-2986852-0.html (1.11 KB, text/html)
2025-05-16 13:02 UTC, Steve Franks
Details
Screenshot 2025-05-18 124300.png (29.06 KB, image/png)
2025-05-18 11:46 UTC, Steve Franks
Details
attachment-488464-0.html (1.10 KB, text/html)
2025-05-19 04:43 UTC, Steve Franks
Details
Copy/Move Popup (25.84 KB, image/png)
2025-05-19 05:54 UTC, Maik Qualmann
Details
Debug log from digiKam-8.7.0-20250519T125543-Qt6-Win64-debug (173.14 KB, application/x-zip-compressed)
2025-05-19 16:12 UTC, Steve Franks
Details
attachment-1787257-0.html (1006 bytes, text/html)
2025-05-21 05:32 UTC, Steve Franks
Details
8C637BA9-370F-418B-9E52-4AD869B61558.png (121.63 KB, image/png)
2025-05-21 13:07 UTC, Steve Franks
Details
attachment-91655-0.html (856 bytes, text/html)
2025-06-27 13:48 UTC, Steve Franks
Details
attachment-3468515-0.html (1.20 KB, text/html)
2025-09-18 13:54 UTC, Steve Franks
Details
20250918_Digikam missing copy move menu (237.17 KB, image/gif)
2025-09-18 14:26 UTC, nonobio
Details
attachment-762161-0.html (887 bytes, text/html)
2025-09-22 15:48 UTC, Steve Franks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Franks 2025-03-22 14:05:26 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
In previous releases of digikam when a tag is dragged to a different tag the user has the choice of moving, or merging, the tag with the target tag.
In this version the tag is inserted in the tag tree below the tag to which it was dragged.


STEPS TO REPRODUCE
1.  select a tag
2.  drag the tag to another tag
3. 

OBSERVED RESULT
I have a number of duplicate tags, which I usually fix by dragging one tag to the correct tag. The dragged tag is now placed below the target tag, which just moves the duplication.
i.e.
Places
  Kent
    Deal*
    East Kent
      Deal
The starred tag is in the wrong place. When it is dragged to the other tag with the same name the result is:-
Places
  Kent
    East Kent
      Deal
         Deal

EXPECTED RESULT
The option to merge, or move, tags as in previous versions of digikam. Resulting in:-
Places
  Kent
    East Kent
      Deal

SOFTWARE/OS VERSIONS
Windows:  11
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version:  6.10.0
Qt Version:  6.8.1

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-03-22 14:57:18 UTC
I can't reproduce the problem. I tried it with my tags and replicated your example. The tags are merged correctly. It's possible that the tag is generated by rereading the metadata, but you'd have to analyze this yourself to see if such tag paths already existed in the images.

Maik
Comment 2 Steve Franks 2025-03-22 23:39:59 UTC
When I drag a tag to a new parent the message appears telling me that a tag of the same name appears and asking if I want to merge the tags.
If I drag a tag to another which has the same name Digikam doesn’t give me the choice. The tag is copied to a position as a child of the target tag.
This is similar to the problem that I had last week with deleted tags reappearing. In that case tags disappeared for a very short time, then reappeared, but were not present after Digikam was restarted. Maybe when Digikam starts next time the tags will have merged. It was busy synchronising data from my 160k files to the database.
I will try again when there are no processes running, although earlier versions did not behave like this.
Comment 3 Steve Franks 2025-03-23 09:50:28 UTC
I recorded a video showing that digikam 8.7.0 does not offer to move/merge tags when one is dragged onto another:-
https://www.dropbox.com/scl/fi/cyicf1g0v3s7ay9m3qmx4/Screen-Recording-2025-03-23-092947.mp4?rlkey=72h5kqes0p0czncd8rbmr9zdb&st=z10epz5p&dl=0
Comment 4 Maik Qualmann 2025-03-23 09:56:33 UTC
A pop-up menu should appear where you can select Move or Merge. Everything's working fine here on Linux; I'll check it later on Windows.

Maik
Comment 5 Steve Franks 2025-03-23 10:58:00 UTC
    Today sometimes the Move/Merge message appears when I drag several tags from the left tag pane to a target tag in the right tag pane.
Comment 6 Maik Qualmann 2025-03-23 11:56:59 UTC
Could it be that your mouse has a left button bounce problem?

Maik
Comment 7 Steve Franks 2025-03-23 13:05:45 UTC
It didn't have before I installed 8.7.0 and I haven't noticed it in any other software.
Comment 8 Maik Qualmann 2025-03-24 19:10:36 UTC
I've tested my Windows computers (1 x Win 11, 2 x Win 10) with different configurations. There's no problem with the popup selection on any of them; it always appears.

Could you please enable the forced use of software OpenGL (not to be confused with OpenCL) in the digiKam settings under Miscellaneous -> System?

And restart digiKam and see if the popup works for you now?

Maik
Comment 9 Steve Franks 2025-03-26 08:18:25 UTC
No, it still moves the tag to become a child of the target.
Should I have restarted digikam after turning use Open-GL on?
BTW Open-CL is off.
Comment 10 Maik Qualmann 2025-03-26 09:27:09 UTC
Yes, any changes to the system settings require a restart of digiKam. They cannot be applied at runtime.

Maik
Comment 11 Steve Franks 2025-03-30 11:41:42 UTC
Created attachment 179867 [details]
attachment-2514479-0.html

Still no option to merge.
I've reverted to 8.6.0, as I need to merge a number of tags into one.
Steve

On Mon, 24 Mar 2025 at 19:10, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #8 from Maik Qualmann <metzpinguin@gmail.com> ---
> I've tested my Windows computers (1 x Win 11, 2 x Win 10) with different
> configurations. There's no problem with the popup selection on any of
> them; it
> always appears.
>
> Could you please enable the forced use of software OpenGL (not to be
> confused
> with OpenCL) in the digiKam settings under Miscellaneous -> System?
>
> And restart digiKam and see if the popup works for you now?
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 12 Maik Qualmann 2025-03-31 19:09:59 UTC
I have no idea why the popup isn't appearing for you. I can't reproduce it on different installations here.
I can add debug messages, but I need prompt feedback.

Maik
Comment 13 caulier.gilles 2025-03-31 19:19:33 UTC
It's not reproducible here too.

Perhaps it's a widget style problem ?
Wayland usage side effect ?
Desktop rules dysfunction ?

Gilles Caulier
Comment 14 Maik Qualmann 2025-03-31 19:29:17 UTC
Git commit 02137a6bfa2c6fc14d12c87849eb64c81714faab by Maik Qualmann.
Committed on 31/03/2025 at 19:28.
Pushed by mqualmann into branch 'master'.

add test debug for tag merge popup

M  +6    -5    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/02137a6bfa2c6fc14d12c87849eb64c81714faab
Comment 15 Maik Qualmann 2025-03-31 19:32:34 UTC
With the next Windows version, likely April 1st, I need a DebugView log with active internal debugging of a tag merge action.

https://files.kde.org/digikam/

Creating a DebugView log is described here:

https://www.digikam.org/contribute/#windows-host

Maik
Comment 16 Steve Franks 2025-04-02 07:48:16 UTC
Created attachment 179929 [details]
attachment-3096058-0.html

Ok. I will install the latest version and make a log.
Watch this space 😊

On Mon, 31 Mar 2025 at 20:32, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #15 from Maik Qualmann <metzpinguin@gmail.com> ---
> With the next Windows version, likely April 1st, I need a DebugView log
> with
> active internal debugging of a tag merge action.
>
> https://files.kde.org/digikam/
>
> Creating a DebugView log is described here:
>
> https://www.digikam.org/contribute/#windows-host
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 17 Steve Franks 2025-04-05 17:02:18 UTC
Created attachment 180032 [details]
attachment-3821077-0.html

I downloaded and installed
digiKam-8.7.0-20250402T050208-Qt6-Win64-debug.exe, ticked Enable internal
debugging in the digikam settings, then stopped digikam.
Edited the system environment variables and set QT_LOGGING_RULES equal to
digikam.*=true;digikam.dimg.jpeg=false.
Started Debugview, then digikam - Debugview screen is empty???
Moved a tag from People to Family (which is a child tag of People). Digikam
didn't prompt me with Move/Merge, just moved the tag below Family.
Debugview screen is still empty, what have I done wrong?

Steve
Comment 18 Steve Franks 2025-04-05 17:10:42 UTC
Created attachment 180033 [details]
attachment-3822242-0.html

I tried again with digiKam-8.7.0-20250405T130158-Qt6-Win64-debug.exe, still
no Debugview Log.
Steve
Comment 19 Steve Franks 2025-04-09 11:16:17 UTC
I still don't get an option to merge tags, when I drag one (or more) to a different tag. If the dragged tag exists below the target then that is reported and the option to merge the tags appears. This is no help when the original tag name is incorrect and I simply want to merge it into the correct tag.
digiKam-8.7.0-20250408T170150-Qt6-Win64-debug.exe still doesn't product any debugview output even though I have altered the QT_LOGGING_RULES system variable to digikam.*=true. Previously jpeg debugging was disabled because it created huge amounts of data.
Comment 20 Steve Franks 2025-04-09 11:21:34 UTC
SystemRC contains:-
[System]
useHighDpiScaling=false
useHighDpiPixmaps=false
enableLogging=true
disableOpenCL=false
enableFaceEngine=false
enableAesthetic=true
enableAutoTags=false
softwareOpenGL=true
proxyUrl=
proxyPort=8080
proxyType=0
proxyAuth=false
disableHWConv=false
videoBackend=ffmpeg
enableOpenCL=false
enableHWVideo=true
enableHWTConv=true
enableAIAutoTools=false
Comment 21 caulier.gilles 2025-04-09 11:35:50 UTC
Hi Steve,

Wait a little bits, i currently recompile whole Windows installers with the new Qt 6.8.3 and KF 6.12.0 frameworks. If all will be fine, this will be ready later this evening...

Gilles
Comment 22 Steve Franks 2025-04-09 12:40:31 UTC
Created attachment 180117 [details]
attachment-304741-0.html

Thanks, I’ll try again tomorrow.
Steve

On Wed, 9 Apr 2025 at 12:35, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #21 from caulier.gilles@gmail.com ---
> Hi Steve,
>
> Wait a little bits, i currently recompile whole Windows installers with
> the new
> Qt 6.8.3 and KF 6.12.0 frameworks. If all will be fine, this will be ready
> later this evening...
>
> Gilles
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 23 Maik Qualmann 2025-04-10 09:15:38 UTC
I don't understand your Comment 19,
digiKam debug isn't necessary for debug output; perhaps you should delete the environment variable and only enable internal debugging in the digiKam settings under System.

It's also possible that something in your Windows registry is disabled, preventing Windows from producing debug output, since you don't see anything from other programs in the DebugView window either.

You wrote that under what conditions you don't get a merge popup, but sometimes you do?

Maik
Comment 24 caulier.gilles 2025-04-11 17:29:30 UTC
Hi Steve,

The 8.7.0 pre-release Windows installer from today have been rebuilt from scratch. Please try with this version...

Best

Gilles Caulier
Comment 25 Steve Franks 2025-04-14 07:44:00 UTC
I will try the latest version later today.
Debugview showed output from my antivirus, but nothing from digikam.
I ticked “show kernel output “, which produced some output. Nothing helpful to this issue. 
Now debugview crashes as soon as it runs. I installed the latest version from MS Store, same problem.

My plan is:-
1) Check for any Windows updates;
2) Install latest version of Digikam from your link;
3) Delete QT-Logging system environment variable;
4) See whether there is an updated Sysinteral suite;
5) start debugview;
6) Start digikam;
Have I missed anything?
Comment 26 caulier.gilles 2025-04-14 08:30:09 UTC
It's fine, let's go
Comment 27 Steve Franks 2025-04-14 16:44:47 UTC
Created attachment 180259 [details]
debugview log for moving tag

Debugview behaved itself today and I recorded this log using digiKam-8.7.0-20250414T130124-Qt6-Win64-debug
Comment 28 Maik Qualmann 2025-04-15 20:16:10 UTC
The log shows a tag move. The popup must have appeared, and "Move Here" was selected in the popup.

If it doesn't, definitely check your mouse or whatever...

00001328	240.37712097	[5232] digikam.general: Test Merge Popup: destAlbum: "Rhingia campestris"	
00001329	240.37728882	[5232] digikam.general: Test Merge Popup: canDecode: true	
00001330	240.37744141	[5232] digikam.general: Test Merge Popup: popMenu: create	
00001331	240.40252686	[5232] digikam.general: Test Merge Popup: popMenu: choice QAction(0x1eb05863cd0 text="&Move Here" toolTip="Move Here" menuRole=TextHeuristicRole enabled=true visible=true)	
00001332	240.40255737	[5232] digikam.general: Test Merge Popup: popMenu: exec move

Maik
Comment 29 Steve Franks 2025-04-16 08:04:49 UTC
Created attachment 180308 [details]
attachment-1848147-0.html

I can do another video, but definitely no pop up. The tag moved directly to
become a child of the target with no interaction with me.
Regards
Steve

PS can I provide any other data to help solve this?
Comment 30 Steve Franks 2025-04-16 08:24:39 UTC
Created attachment 180309 [details]
digikam_20250416.LOG

I tried a different mouse, it made no difference.
This build seems to start a lot quicker than previous ones.
Regards
Steve

On Wed, 16 Apr 2025 at 09:04, Steve Franks <stevef48@gmail.com> wrote:

> I can do another video, but definitely no pop up. The tag moved directly
> to become a child of the target with no interaction with me.
> Regards
> Steve
>
> PS can I provide any other data to help solve this?
>
Comment 31 Maik Qualmann 2025-04-16 11:46:34 UTC
I really have no idea why you're not getting a popup.
A click event must take place, otherwise the returned QAction would not be a move action.

As a test, I'll add a process event before the popup appears.

Maik
Comment 32 Maik Qualmann 2025-04-16 11:48:41 UTC
Do you have 2 monitors?

Maik
Comment 33 Steve Franks 2025-04-16 17:32:52 UTC
Created attachment 180319 [details]
attachment-1937005-0.html

I'm running 8.7.0 on my laptop, so I could connect my desktop monitor to it.
What do you suggest?
Steve

On Wed, 16 Apr 2025 at 12:48, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #32 from Maik Qualmann <metzpinguin@gmail.com> ---
> Do you have 2 monitors?
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 34 Maik Qualmann 2025-04-17 06:20:17 UTC
Git commit fd3b6dc34ed280048296893d3911216420e23436 by Maik Qualmann.
Committed on 17/04/2025 at 06:19.
Pushed by mqualmann into branch 'master'.

add process events before move/merge popup is displayed

M  +6    -6    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/fd3b6dc34ed280048296893d3911216420e23436
Comment 35 Steve Franks 2025-04-17 09:34:56 UTC
Created attachment 180345 [details]
debugview log 20250417T1020 for digiKam-8.7.0-20250417T050152-Qt6-Win64-debug

I tried with the latest version, still no choice to Move/Merge. Tags were moved.
Unchecked Use Exiftool options, tried again. debugview log is from digikam after restarting, still no Merge option.
Shouldn't the Merge option show up in this line:-
00148220	349.33865356	[22128] digikam.general: Test Merge Popup: popMenu: choice QAction(0x21eded9bcc0 text="&Move Here" toolTip="Move Here" menuRole=TextHeuristicRole enabled=true visible=true)
Comment 36 Steve Franks 2025-04-17 10:37:16 UTC
Created attachment 180346 [details]
attachment-2174299-0.html

I tried the appimage on my Ubuntu PC and it does what one expects. Dragging
a tag causes digikam to display the Move or Merge message.
It's therefore something odd about my Windows 11 laptop. The next thing is
to run 8.7.0 on my Windows 11 Desktop and see what happens.
Regards
Steve

On Thu, 17 Apr 2025 at 07:20, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #34 from Maik Qualmann <metzpinguin@gmail.com> ---
> Git commit fd3b6dc34ed280048296893d3911216420e23436 by Maik Qualmann.
> Committed on 17/04/2025 at 06:19.
> Pushed by mqualmann into branch 'master'.
>
> add process events before move/merge popup is displayed
>
> M  +6    -6    core/app/dragdrop/tagdragdrop.cpp
>
>
> https://invent.kde.org/graphics/digikam/-/commit/fd3b6dc34ed280048296893d3911216420e23436
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 37 Steve Franks 2025-04-17 11:09:17 UTC
Created attachment 180347 [details]
Desktop_20250427T1200.LOG

This is strange, I downloaded and installed
digiKam-8.7.0-20250417T090152-Qt6-Win64-debug on my Windows 11 desktop.
When I ran it and moved a tag, the Merge/Move message appeared but nothing
showed up in the debugview Log.
The attached file is from the second time I ran it after checking that
internal debug was enabled.

The laptop is running the latest Windows Insider build of Windows 11, the
desktop is on Windows 11 Home build 26120
Comment 38 Maik Qualmann 2025-04-17 15:17:24 UTC
Does that mean it now works with the latest Windows build, and the popup appears for you?

It's clear that no debug messages are visible. I removed them because it was clear that the functions were being called.

Maik
Comment 39 Steve Franks 2025-04-17 21:50:37 UTC
Created attachment 180369 [details]
attachment-2354808-0.html

No, it still doesn’t work on my laptop.
I will have to revert to 8.6.0 to clear up my tags.
Regards
Steve


On Thu, 17 Apr 2025 at 16:17, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #38 from Maik Qualmann <metzpinguin@gmail.com> ---
> Does that mean it now works with the latest Windows build, and the popup
> appears for you?
>
> It's clear that no debug messages are visible. I removed them because it
> was
> clear that the functions were being called.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 40 Steve Franks 2025-04-18 09:33:53 UTC
I'm completely baffled, both Windows PCs are running the same version of Windows.
Can I have chosen a setting within digikam, or Windows, that is causing this?
Steve
Comment 41 caulier.gilles 2025-04-18 10:44:57 UTC
Hi Steve,

From the digiKam side, i can see only the settings in the MISCS/System panel.

Other source of the problem can be about different applications based on Qt and installed on the system. The paths to the 3rd applications are shared on the whole env. and a mess appears at the startup of digiKam mixing the libraries at run time.

In the critical case, digiKam crash, else side effects can appears.

Note that digiKam do not share the path to the binaries installed to the rest of the system.

There is also the GPU + drivers installed on the systems to compare.

So the Q is : Both Windows computers have the same env. (applications/drivers/updates installed and running) ?

Best

Gilles
Comment 42 Maik Qualmann 2025-04-18 20:18:54 UTC
Git commit 60b9c8def66c690891ce305ea001b65e4c7b834c by Maik Qualmann.
Committed on 18/04/2025 at 20:17.
Pushed by mqualmann into branch 'master'.

fix drag&drop popup positions under Wayland
On Wayland we can't rely on global cursor position.
In particular QCursor::pos() returns a wrong position.

M  +51   -5    core/app/dragdrop/albumdragdrop.cpp
M  +10   -1    core/app/dragdrop/importdragdrop.cpp
M  +31   -5    core/app/dragdrop/itemdragdrop.cpp
M  +43   -5    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/60b9c8def66c690891ce305ea001b65e4c7b834c
Comment 43 Maik Qualmann 2025-04-20 14:50:52 UTC
*** Bug 503054 has been marked as a duplicate of this bug. ***
Comment 44 Steve Franks 2025-04-24 08:01:31 UTC
The computers are different, so the drivers will be different too, but they are both running the same version of Windows 11.
I don't know of any other applications using QT. Is there any way to determine what might be using it?
For the time being I have reverted to 8.6.0 on my laptop, but continue to use 8.7.0 on my desktop.
Steve
Comment 45 caulier.gilles 2025-04-24 08:20:04 UTC
Hi Steve,

You can try Krita and Kdenlive, both propose a Windows installer and are Qt based:

https://krita.org/fr/download/
https://kdenlive.org/fr/download/

Gilles
Comment 46 Steve Franks 2025-04-24 11:05:48 UTC
I reverted to digiKam: 8.6.0, but the problem persists.
KDE Frameworks: 6.10.0
Qt: Using 6.8.1 and built against 6.8.1
Windows 11 Version 24H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26120
Comment 47 Maik Qualmann 2025-05-15 13:44:16 UTC
*** Bug 504238 has been marked as a duplicate of this bug. ***
Comment 48 HubMiner 2025-05-16 09:16:10 UTC
Based on this (https://bugs.kde.org/show_bug.cgi?id=501862) discussion, it sounded that the issue was only present in 8.7, I am seeing it in 8.6 .
Comment 49 Steve Franks 2025-05-16 13:02:04 UTC
Created attachment 181381 [details]
attachment-2986852-0.html

I commented earlier that I still see it now that I’ve gone back to 8.6.0.
It’s just an inconvenience, I can simulate merging tags manually.
Steve

On Fri, 16 May 2025 at 10:16, HubMiner <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #48 from HubMiner <cal030@outlook.com> ---
> Based on this (https://bugs.kde.org/show_bug.cgi?id=501862) discussion, it
> sounded that the issue was only present in 8.7, I am seeing it in 8.6 .
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 50 Steve Franks 2025-05-16 13:16:14 UTC
Sorry if my comment 46 wasn’t clear. I went back to 8.6.0 on my laptop, but that made no difference the problem is still happening. Dragging a tag to a different tag still shows no options. The tag moves to a position as a child of the target tag.
E.g.  Indented tags are children of the previous unindented tag.
 Alpha
   Beta
   Gamma
Delta
   Beta2

If Beta2 is dragged to Beta no option to merge/move is displayed and the resulting tag tree is:-
Alpha
   Beta
     Beta2
   Gamma
Delta
Comment 51 Maik Qualmann 2025-05-16 20:12:38 UTC
I find this bug very strange, as I have three Windows (10/11) machines where everything is working fine. There are currently a few reports about QMenu on the Qt bug tracker (no popup if no QAction has been added). We'll see if there's a connection.

What about other popups, for example, when dragging and dropping items to albums?
Please post your hardware, which graphics card you have, and if there's anything similar.

Maik
Comment 52 HubMiner 2025-05-17 01:29:00 UTC
> What about other popups, for example, when dragging and dropping items to albums?

I am happy to try specific scenarios, let me know what.

When dragging/moving pictures to another albums - there is no prompt, they are properly moved.

When dragging album/folder structures - I get a prompt about handling existing name clashes, so works as intended and all the time.


Sometimes dragging faces, I get a weird rectangle, imagine: 2/3 over faces from pictures, 1/3 over left people panel.  This hints at some mouse processing lag.  I have not seen this behavior in any other apps. 

Another observation and speculation:
after making lots of changes (like rename a tag that's applied to 1000 files):
while DK is writing to its DB, interface is laggy, sometimes missing commands (like drag a face).  
Are the DB writes blocking and interfere with UI processing?  

My hardware:
CPU: Intel i7 3700K
RAM: 16
GPU: 1660 TI 6GB-video
Single monitor.

Mouse driver apps installed: Logitech SetPoint, KengingtonWorks
Security software: Windows Defender, TinyWall (firewall)
OS: Windows 10, patched.

DK DB: MySql-internal, on SSD drive with 200+ GB free, DB directory: 36 GB
Comment 53 Maik Qualmann 2025-05-18 10:25:21 UTC
When dragging and dropping items to albums, a popup must also appear so that you can choose between moving and copying.

Maik
Comment 54 Steve Franks 2025-05-18 11:46:29 UTC
Created attachment 181456 [details]
Screenshot 2025-05-18 124300.png

I've attached a screenshot the pop up that I see when copying to a
different album
Steve

On Sun, 18 May 2025 at 11:25, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #53 from Maik Qualmann <metzpinguin@gmail.com> ---
> When dragging and dropping items to albums, a popup must also appear so
> that
> you can choose between moving and copying.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 55 Maik Qualmann 2025-05-18 18:36:47 UTC
That's not the popup I'm talking about. This is the conflict dialog that appears when a file with the same name already exists.
You didn't see that popup either.

Maik
Comment 56 Steve Franks 2025-05-19 04:43:43 UTC
Created attachment 181485 [details]
attachment-488464-0.html

I’m confused the pop up in my screenshot was caused by the files already
existing. Can you send me a screenshot of the other pop up?
Thanks
Steve

On Sun, 18 May 2025 at 19:36, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #55 from Maik Qualmann <metzpinguin@gmail.com> ---
> That's not the popup I'm talking about. This is the conflict dialog that
> appears when a file with the same name already exists.
> You didn't see that popup either.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 57 Maik Qualmann 2025-05-19 05:54:28 UTC
Created attachment 181487 [details]
Copy/Move Popup

Popup when dragging and dropping an image into an album.

Maik
Comment 58 Maik Qualmann 2025-05-19 06:27:27 UTC
Git commit acd1adea7bab19e8ca125ad9e153b04bf712d182 by Maik Qualmann.
Committed on 19/05/2025 at 06:26.
Pushed by mqualmann into branch 'master'.

as a test accept the QDropEvent before the popup is displayed

M  +2    -1    core/app/dragdrop/albumdragdrop.cpp
M  +1    -1    core/app/dragdrop/albumdragdrop.h
M  +1    -1    core/app/dragdrop/importdragdrop.cpp
M  +1    -1    core/app/dragdrop/importdragdrop.h
M  +3    -1    core/app/dragdrop/itemdragdrop.cpp
M  +1    -1    core/app/dragdrop/itemdragdrop.h
M  +2    -1    core/app/dragdrop/tagdragdrop.cpp
M  +1    -1    core/app/dragdrop/tagdragdrop.h
M  +1    -1    core/libs/dragdrop/abstractitemdragdrophandler.cpp
M  +1    -1    core/libs/dragdrop/abstractitemdragdrophandler.h
M  +1    -1    core/libs/models/albummodeldragdrophandler.cpp
M  +1    -1    core/libs/models/albummodeldragdrophandler.h
M  +1    -1    core/showfoto/thumbbar/showfotodragdrophandler.cpp
M  +1    -1    core/showfoto/thumbbar/showfotodragdrophandler.h

https://invent.kde.org/graphics/digikam/-/commit/acd1adea7bab19e8ca125ad9e153b04bf712d182
Comment 59 Maik Qualmann 2025-05-19 12:24:41 UTC
A new digiKam-8.7.0 test version is available, please test whether a popup is now visible when dragging and dropping a tag.

Maik
Comment 60 Steve Franks 2025-05-19 15:46:26 UTC
(In reply to Maik Qualmann from comment #59)
> A new digiKam-8.7.0 test version is available, please test whether a popup
> is now visible when dragging and dropping a tag.
> 
> Maik

OK I will install and test it.
I don't see your pop up, only the one that I posted yesterday.
Steve
Comment 61 Steve Franks 2025-05-19 16:12:14 UTC
Created attachment 181525 [details]
Debug log from digiKam-8.7.0-20250519T125543-Qt6-Win64-debug

This is the zipped debugview log from digikam
Comment 62 Maik Qualmann 2025-05-19 19:52:12 UTC
Git commit fb3eec3af1049ac38f599ddb07eac830914203f5 by Maik Qualmann.
Committed on 19/05/2025 at 19:51.
Pushed by mqualmann into branch 'master'.

create the popup QMenu on the heap for the tag merge action

M  +10   -8    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/fb3eec3af1049ac38f599ddb07eac830914203f5
Comment 63 Maik Qualmann 2025-05-20 11:00:02 UTC
Another digiKam-8.7.0 test version is available. Please test whether a popup appears when dragging and dropping a standard tag. A debug log is not necessary; no information is recorded during this action.

Maik
Comment 64 Steve Franks 2025-05-21 05:32:19 UTC
Created attachment 181595 [details]
attachment-1787257-0.html

Ok, I will check.
Steve

On Tue, 20 May 2025 at 12:00, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #63 from Maik Qualmann <metzpinguin@gmail.com> ---
> Another digiKam-8.7.0 test version is available. Please test whether a
> popup
> appears when dragging and dropping a standard tag. A debug log is not
> necessary; no information is recorded during this action.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 65 Steve Franks 2025-05-21 13:07:17 UTC
Created attachment 181605 [details]
8C637BA9-370F-418B-9E52-4AD869B61558.png

No popup, but Windows’ Task Manager shows two digikam processes. I haven’t
seen that before:-
Steve

On Wed, 21 May 2025 at 06:31, Steve Franks <stevef48@gmail.com> wrote:

> Ok, I will check.
> Steve
>
> On Tue, 20 May 2025 at 12:00, Maik Qualmann <bugzilla_noreply@kde.org>
> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=501862
>>
>> --- Comment #63 from Maik Qualmann <metzpinguin@gmail.com> ---
>> Another digiKam-8.7.0 test version is available. Please test whether a
>> popup
>> appears when dragging and dropping a standard tag. A debug log is not
>> necessary; no information is recorded during this action.
>>
>> Maik
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>
Comment 66 Maik Qualmann 2025-06-05 20:03:12 UTC
Git commit 4d25dd4f1ef3a340028910b23d50ff3db6eb83b5 by Maik Qualmann.
Committed on 05/06/2025 at 20:01.
Pushed by mqualmann into branch 'master'.

use the active window as parent for the QMenu
Related: bug 505103

M  +5    -5    core/app/dragdrop/albumdragdrop.cpp
M  +2    -2    core/app/dragdrop/importdragdrop.cpp
M  +4    -4    core/app/dragdrop/itemdragdrop.cpp
M  +4    -4    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/4d25dd4f1ef3a340028910b23d50ff3db6eb83b5
Comment 67 caulier.gilles 2025-06-23 14:56:43 UTC
Hi Steve,

Last commit from Maik fix this issue on your computer using last Windows build 8.7.0 pre-release ?

Best

Gilles Caulier
Comment 68 Steve Franks 2025-06-27 13:48:10 UTC
Created attachment 182725 [details]
attachment-91655-0.html

Hi Gilles,
Sorry for the late reply. I
installed digiKam-8.7.0-20250626T130129-Qt6-Win64-debug and still do not
see an option to merge tags. Dragging tags to a different branch takes
place without dialogue and the tag moves to the new branch.
It is very strange, because my desktop PC is running the same version of
Windows 11 and doesn't have this problem.
There is obviously something going on in my laptop, which I don't
understand. The problem is not a show stopper, I can always select all
images with one of the tags, remove the tag from them, then apply the other
tag.
I think that you have wasted too much time on this, I'm sorry to have
caused so much work. Your efforts are appreciated,
Thanks
Steve
Comment 69 nonobio 2025-09-12 15:22:50 UTC
Hi,
I just saw the problem by drag and drop, as I often do, from photos to another album. Usually a menu to choose to copy or move appears, but there I don't have a menu.
I have Digikam 8.7.0 and Windows 11.
Thanks
Comment 70 Maik Qualmann 2025-09-17 18:13:26 UTC
Git commit ac70e90408be4b5b63c667f8d51e79af3a99c4ef by Maik Qualmann.
Committed on 17/09/2025 at 18:12.
Pushed by mqualmann into branch 'master'.

try an ugly thing to fix the QMenu problem
Related: bug 505103

M  +10   -5    core/app/dragdrop/albumdragdrop.cpp
M  +10   -5    core/app/dragdrop/itemdragdrop.cpp
M  +8    -4    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/ac70e90408be4b5b63c667f8d51e79af3a99c4ef
Comment 71 Maik Qualmann 2025-09-18 11:19:19 UTC
Please test the current pre-release to see if there are any changes.

https://files.kde.org/digikam/

Maik
Comment 72 Steve Franks 2025-09-18 13:54:15 UTC
Created attachment 185049 [details]
attachment-3468515-0.html

It worked the first time that I tried it, but not subsequent times.
I dragged a tag to a different parent in both the left and right Tag Trees,
in each case the tag was moved to a child position under the target tag
without confirmation.
Steve

On Thu, 18 Sept 2025 at 12:19, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #71 from Maik Qualmann <metzpinguin@gmail.com> ---
> Please test the current pre-release to see if there are any changes.
>
> https://files.kde.org/digikam/
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 73 nonobio 2025-09-18 14:26:54 UTC
Created attachment 185050 [details]
20250918_Digikam missing copy move menu

Hi,
I installed the digikam-8.8.0-20250918t130133-qt6-win64.exe: same problem :(
Comment 74 Maik Qualmann 2025-09-18 19:33:15 UTC
Git commit 0e02bf49d6ed0c0f0cbac65f9c679b3cd059e8fd by Maik Qualmann.
Committed on 18/09/2025 at 19:32.
Pushed by mqualmann into branch 'master'.

next try to fix the QMenu problem
Related: bug 505103

M  +6    -5    core/app/dragdrop/albumdragdrop.cpp
M  +5    -4    core/app/dragdrop/itemdragdrop.cpp
M  +5    -4    core/app/dragdrop/tagdragdrop.cpp
M  +26   -0    core/app/utils/digikam_globals.cpp
M  +8    -0    core/app/utils/digikam_globals.h
M  +2    -0    core/app/utils/digikam_globals_p.h

https://invent.kde.org/graphics/digikam/-/commit/0e02bf49d6ed0c0f0cbac65f9c679b3cd059e8fd
Comment 75 Maik Qualmann 2025-09-19 20:04:16 UTC
Git commit 991aa07160afa1662ab572647fb30c24b4f0d0ef by Maik Qualmann.
Committed on 19/09/2025 at 20:03.
Pushed by mqualmann into branch 'master'.

disable mouse tracking over popup menu
Related: bug 505103

M  +0    -10   core/app/dragdrop/albumdragdrop.cpp
M  +0    -5    core/app/dragdrop/importdragdrop.cpp
M  +0    -17   core/app/dragdrop/itemdragdrop.cpp
M  +0    -11   core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/991aa07160afa1662ab572647fb30c24b4f0d0ef
Comment 76 Maik Qualmann 2025-09-21 08:34:26 UTC
Git commit 54a5aea116901dd52959d15e761d3f679599e2d2 by Maik Qualmann.
Committed on 21/09/2025 at 08:33.
Pushed by mqualmann into branch 'master'.

fix QMenu in tag drag and drop
Item and album drag and drop to come...
Related: bug 505103

M  +321  -357  core/app/dragdrop/tagdragdrop.cpp
M  +18   -0    core/app/dragdrop/tagdragdrop.h

https://invent.kde.org/graphics/digikam/-/commit/54a5aea116901dd52959d15e761d3f679599e2d2
Comment 77 Maik Qualmann 2025-09-21 10:08:13 UTC
Git commit b6b0576196f0a9323a33997837df4fba8901cf60 by Maik Qualmann.
Committed on 21/09/2025 at 10:07.
Pushed by mqualmann into branch 'master'.

fix QMenu in album drag and drop
Related: bug 505103

M  +255  -304  core/app/dragdrop/albumdragdrop.cpp
M  +20   -0    core/app/dragdrop/albumdragdrop.h
M  +3    -1    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/b6b0576196f0a9323a33997837df4fba8901cf60
Comment 78 Maik Qualmann 2025-09-21 14:45:00 UTC
Git commit df78c22e0951c7622bffa76f2a6e2cfbe4a2b9ab by Maik Qualmann.
Committed on 21/09/2025 at 14:44.
Pushed by mqualmann into branch 'master'.

fix QMenu in item drag and drop
Related: bug 505103

M  +2    -1    core/app/dragdrop/albumdragdrop.cpp
M  +519  -561  core/app/dragdrop/itemdragdrop.cpp
M  +42   -1    core/app/dragdrop/itemdragdrop.h
M  +2    -2    core/app/dragdrop/tagdragdrop.cpp

https://invent.kde.org/graphics/digikam/-/commit/df78c22e0951c7622bffa76f2a6e2cfbe4a2b9ab
Comment 79 Maik Qualmann 2025-09-21 15:22:11 UTC
Git commit be271a6188aa89492a035a461cc45867ad2ebe5e by Maik Qualmann.
Committed on 21/09/2025 at 15:21.
Pushed by mqualmann into branch 'master'.

fix QMenu in import drag and drop
Related: bug 505103

M  +38   -147  core/app/dragdrop/importdragdrop.cpp
M  +6    -15   core/app/dragdrop/importdragdrop.h
M  +1    -0    core/app/dragdrop/itemdragdrop.cpp
M  +2    -0    core/app/dragdrop/itemdragdrop.h

https://invent.kde.org/graphics/digikam/-/commit/be271a6188aa89492a035a461cc45867ad2ebe5e
Comment 80 nonobio 2025-09-22 06:12:04 UTC
I installed digiKam-8.8.0-20250922T050143-Qt6-Win64.exe and the issue is fixed! thanks a lot :)
Comment 81 Steve Franks 2025-09-22 15:48:21 UTC
Created attachment 185154 [details]
attachment-762161-0.html

YES!!! It works for me too.
Thank you Maik,
Steve

On Mon, 22 Sept 2025 at 07:12, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=501862
>
> --- Comment #80 from nonobio@gmail.com ---
> I installed digiKam-8.8.0-20250922T050143-Qt6-Win64.exe and the issue is
> fixed!
> thanks a lot :)
>
> --
> You are receiving this mail because:
> You reported the bug.