Version: 0.70.90 (using KDE 4.3.0) Compiler: g++ (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2 OS: Linux Installed from: Gentoo Packages There's a feature in kopete which checks for recently received messages when the user wants to close the chatview - this prevents the user from missing a message in the same moment he tries to close the window. However, there's a command "clear" which is an IRC-style command for clearing the current view. There are no checks for recently arrived messages so the user might miss an important message. My proposal is: bool ChatView::closeView( bool force ) - Move the message-warning code to a seperate method. void ChatView::clear() - Call this new method from within the clear-command and the closeView I could do a patch if it's appreciated.
Yes, a patch for this would be awesome.
Following patch differs from my inital proposal. It's just an additional check of unreadMessageFrom and introduces a new string for the clear-warning. The patch is based on released kde-4.3.1.
Created attachment 36748 [details] Patch: Add a warning for clearing the chat if there are unread messages.
SVN commit 1025560 by mattr: Add a warning to the clear command. Patch by Dominik Geyer. Thanks! BUG: 204347 M +11 -1 chatview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1025560