Bug 435909

Summary: Dragging files onto themselves should be ignored, and not asked for overwrite/rename
Product: [Applications] digikam Reporter: Jens <jens-bugs.kde.org>
Component: Albums-IconViewAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jens 2021-04-19 09:45:58 UTC
SUMMARY
see $SUBJECT

STEPS TO REPRODUCE
1. open any folder
2. select some images
3. start dragging (not ctrl-drag)
4. release onto same folder

OBSERVED RESULT
dialog pops up asking if we want to rename or ovewrite

EXPECTED RESULT
no dialog. I wanted to move the images, this should be ignored if the target is the same folder/album because the exact same files are already there.

If ctrl-drag is used and released on the same folder/album, it is debatable whether the user should be asked if s?he wants to create duplicates. I think no, in 99% of all cases. There are other options for rare cases where it makes sense to duplicate files (Ctrl-C + Ctrl-V, versioning, etc). Maybe we can add a checkbox "[x] Don't ask again when target and source are identical" to the dialog, and a settings option? 

Using Digikam appimage with KDE Neon and all available updates applied.
Comment 1 Maik Qualmann 2021-04-19 10:37:53 UTC
This is normal file manager behavior. Dolphin shows no other behavior.

Maik
Comment 2 Jens 2021-04-19 11:51:52 UTC
Yes, it does.

Dolphin shows a popup context menu allowing to copy, link or cancel. Move is not shown as an option since it would not make sense. You can click anywhere to dismiss it.

Digikam already assumes you want to move (which totally doesn't make sense here), and shows a modal dialog (!) asking you to rename or overwrite (which would be a null action, overwrite files with themselves).

If the behaviour really were the same, I would not complain. :-)