Closed saqef closed 1 year ago
I'm not sure anything could be done... The clipboard is managed by the underlying toolkit, Qt. tdesktop just uses QClipboard for copying from chat view while input field's clipboard is managed entirely by QTextEdit.
Yeap, but there is no any problem with pure qt's code:
QClipboard *clipboard = QGuiApplication::clipboard(); QString originalText = clipboard->text();
It works perfectly.
Ok, I'll try to build telegram and debug what's happening under hood.
Make sure you're using the same Qt version as tdesktop (currently 6.5.2). Different Qt versions have different bugs.
Sorry. It's actually Qt's bug. Has been tested on 5.15 and 6.5.2. Corrupted on 6.5.2
Steps to reproduce
Open remmina and make connection (doesn't matter VNC or RDP). Copy some text on remote machine. Try to paste it into any field in Telegram.
(In log there is no mention even about trying to paste)
Expected behaviour
Just paste text to any field.
Actual behaviour
Nothing happens on Ctrl+C. Looks like buffer is empty because copy submenu on right clink is disabled. If you paste text into any other application (for example, Firefox), copy it there and paste after into Telegram - no problem.
Operating system
Ubuntu 22.04.3 LTS
Version of Telegram Desktop
4.9.3
Installation source
Snap
Crash ID
No response
Logs