Bug 494558 - Cannot copy the label of an icon on desktop if the renaming mode is activated via mouse
Summary: Cannot copy the label of an icon on desktop if the renaming mode is activated...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 6.2.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-11 17:18 UTC by Patrick Silva
Modified: 2024-10-21 16:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2024-10-11 17:18:10 UTC
SUMMARY
Similar to bug 427292, can reproduce on both Arch Linux and neon unstable.

STEPS TO REPRODUCE
1. click on the name of an icon on desktop and click on it again after a few milliseconds, so the name of the icon enters in edit mode and it is selected
2. right-click on the name of the icon in edit mode - the name of the icon is immediately deselected and then the context menu opens
3. choose "Copy" option from the context menu


OBSERVED RESULT
the name of the icon was not copied

EXPECTED RESULT
we can copy the label of the icon by following the provided steps

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-10-11 18:13:02 UTC
Can reproduce with those steps.
Comment 2 Bug Janitor Service 2024-10-21 12:48:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2594
Comment 3 Nate Graham 2024-10-21 16:33:19 UTC
Git commit eb3e23c9d34fd775e39a80ee7b3ce7252bfda724 by Nate Graham, on behalf of Akseli Lahtinen.
Committed on 21/10/2024 at 16:33.
Pushed by ngraham into branch 'master'.

FolderView: Ignore file-related clicks if rename editor is open and is clicked

The listener would take over the context menu handling and turn off any
other menus, even when the rename editor is the one being clicked.

Check for editor existing similar way as in the onClicked property to
avoid the listener taking over.
FIXED-IN: 6.2.2

M  +6    -0    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/eb3e23c9d34fd775e39a80ee7b3ce7252bfda724
Comment 4 Nate Graham 2024-10-21 16:33:56 UTC
Git commit 487fe1d36d805b54b31caf69e8fe1510b2e00940 by Nate Graham.
Committed on 21/10/2024 at 16:33.
Pushed by ngraham into branch 'Plasma/6.2'.

FolderView: Ignore file-related clicks if rename editor is open and is clicked

The listener would take over the context menu handling and turn off any
other menus, even when the rename editor is the one being clicked.

Check for editor existing similar way as in the onClicked property to
avoid the listener taking over.
FIXED-IN: 6.2.2


(cherry picked from commit eb3e23c9d34fd775e39a80ee7b3ce7252bfda724)

be72e057 FolderView: Ignore file related clicks if rename editor is open and is clicked

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +6    -0    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/487fe1d36d805b54b31caf69e8fe1510b2e00940