Bug 420244

Summary: "Paste" feature of apps (Kate and Konsole, for example) is enabled even when the clipboard is empty
Product: [Frameworks and Libraries] frameworks-kconfigwidgets Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: CONFIRMED ---    
Severity: minor CC: kde, nate
Priority: NOR Keywords: usability
Version: 5.245.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2020-04-18 12:41:32 UTC
STEPS TO REPRODUCE
1. use the clipboard applet in systray to make sure that your clipboard is empty. If it is not, empty it.
2. open Kate
3. right-click on the text area: "Paste" entry is enabled.
Click on "Edit" menu: its "Paste" entry is enabled too.

EXPECTED RESULT
"Paste" entry of menu bar and context menu should be disabled when there is nothing to paste.


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.1
Comment 1 Patrick Silva 2020-04-19 13:53:22 UTC
it's not a Kate issue. Konsole is also affected and sometimes I can't paste
copied text. Re-assigning to klipper.
Comment 2 Patrick Silva 2021-09-18 16:13:00 UTC
Reproducible at least on Wayland.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 3 David Edmundson 2021-10-03 19:45:21 UTC
Not a plasmashell bug.
Comment 4 David Edmundson 2021-10-03 19:47:14 UTC
Reproducible on x11 too.

QClipboard does get notified when clipboard is emptied.

It will add a noticable amount of overhead to have apps update and check, we hit a noticeable slowdown with QQuickTextInputs check. If someone makes a one line obvious fix in KStandardActions, please check that properly.