[Konsole-devel] [PATCH to bug 49153]: deattach/attach session -> key input is doubled

Luis Pedro Coelho luis_pedro at netcabo.pt
Sun Oct 20 14:04:57 UTC 2002


Hi,

[I hope this is the right place for this].

(See the bug report at http://bugs.kde.org/show_bug.cgi?id=49153)

There is another manifestation of the bug: instead of reattaching the konsole, 
open another session and now inputs on this new session will also appear on 
the dettached one.

I found that the problem is that TEmulVt102::onKeyPressed is *not* 
disconnected from TEWidget::keyPressedSignal as it should so it gets 
connected twice. This looks like a Qt bug, though I was unable to build a 
simple case showing the bug. This is reinforced by the fact that it only 
shows on qt-copy.

This patch works around the bug. However, I think that this patch is also 
better since it is more fault-tolerant, i.e. if you add a connection later 
there is no possibility you forget to disconnect it.

HTH,
-- 
Luis Pedro Coelho

"Technology does not always equal progress."
Douglas Coupland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konsole.patch
Type: text/x-diff
Size: 2620 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20021020/0236f062/attachment.bin>


More information about the konsole-devel mailing list