[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/kopete/chatwindow
From: Matt Rogers <mattr () kde ! org>
Date: 2009-09-19 4:09:55
Message-ID: 1253333395.906930.7799.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1025560 by mattr:
Add a warning to the clear command.
Patch by Dominik Geyer. Thanks!
BUG: 204347
M +11 -1 chatview.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/chatwindow/chatview.cpp #1025559:1025560
@@ -243,7 +243,17 @@
void ChatView::clear()
{
- messagePart()->clear();
+ int response = KMessageBox::Continue;
+
+ if ( !unreadMessageFrom.isNull() )
+ {
+ response = KMessageBox::warningContinueCancel( this, i18n("<qt>You have received a \
message from <b>%1</b> in the last " + "second. Are you sure you want to clear this \
chat?</qt>", unreadMessageFrom ), i18n( "Unread Message" ), + KGuiItem( i18nc( \
"@action:button", "Clear Chat" ) ), KStandardGuiItem::cancel(), \
QLatin1String("AskClearChatRecentMessage" ) ); + }
+
+ if ( response == KMessageBox::Continue )
+ messagePart()->clear();
}
void ChatView::resetFontAndColor()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic