Version: 0.60.2 (using 4.1.2 (KDE 4.1.2), Gentoo) Compiler: x86_64-pc-linux-gnu-gcc OS: Linux (x86_64) release 2.6.26-gentoo-r1 When a chat partner wrote something a few seconds ago and you want to close the window, Kopete pops up a dialog and asks if you really want to do so. But clicking "cancel" closes the chat anyway (so does "close chat"). Expected behavior: Kopete should not close the chat window (okay, that was obvious).
I can confirm this bug.
how can i reproduce this?
Try to close a chat window right after someone sent you a message. Then kopete will display a confirmation dialog... both options will close the dialog
Created attachment 30530 [details] A patch fixing this bug The bug was in KopeteChatWindow::closeEvent - the QCloseEvent comes marked as Accepted by default, so accept() is actually a no-op, but it's necessary to call ignore() when the user doesn't want to close the window.
SVN commit 915669 by rjarosz: Fix bug 172188: Clicking on "cancel" instead of "close chat" closes chat anyway. Patch by Tomáš Trnka. Thanks! BUG: 172188 CCMAIL: TomTrnka@seznam.cz M +3 -0 kopetechatwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=915669
SVN commit 915670 by rjarosz: Backport commit 915669. Fix bug 172188: Clicking on "cancel" instead of "close chat" closes chat anyway. Patch by Tomáš Trnka. Thanks! CCBUG: 172188 M +3 -0 kopetechatwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=915670
Thank you Tomáš and Roman :)
*** Bug 186822 has been marked as a duplicate of this bug. ***