Created attachment 131830 [details] The bug SUMMARY Duplicate entries for links i.e 'Open Link' & 'Copy Link Address' appear in the right-click context menu. I have tested it on Konsole, Dolphin and Kate and the behavior can be experienced in all of them. It only triggers when the link is highlighted. STEPS TO REPRODUCE 1. Right click on a link 2. Remove the right click context-menu by click outside it 3. Highlight the link or the row of the link by double clicking 4. Right click on the link OBSERVED RESULT Duplicate entries for 'Open Link' & 'Copy Link Address' EXPECTED RESULT One Entry for 'Open Link' & 'Copy Link Address' SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Tumbleweed KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.1
That's odd. I cannot reproduce.
Created attachment 131902 [details] Many Duplicates
I was able to achieve this by first highlighting the link and then just right-clicking multiple times on the highlighted link
It also works on master
LOL that was it. Now I can reproduce the issue too. Looks like we're not checking for the existence of the menu items before we create more. Tomaz, Can you investigate?
Git commit 44f00a490a9bed1741fee23c6aedeff6ec4c24ef by Kurt Hindenburg, on behalf of Carlos Alves. Committed on 24/10/2020 at 01:11. Pushed by hindenburg into branch 'master'. Fix duplicates link-related entries in context menu FIXED-IN: 20.08.3 !237 M +12 -1 src/session/SessionController.cpp https://invent.kde.org/utilities/konsole/commit/44f00a490a9bed1741fee23c6aedeff6ec4c24ef
Git commit 532b7b965956f5ad04e90b07fbcc4fcc00885bdb by Kurt Hindenburg, on behalf of Yash Tiwari. Committed on 24/10/2020 at 01:23. Pushed by hindenburg into branch 'release/20.08'. Fix duplicates link-related entries in context menu FIXED-IN: 20.08.3 !237 M +12 -1 src/SessionController.cpp https://invent.kde.org/utilities/konsole/commit/532b7b965956f5ad04e90b07fbcc4fcc00885bdb
The 'Copy location" still duplicates on 20.08.3; the master patch can't be used due to other changes. I'll see if I can get something working before the deadline Nov 2nd.