[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/contactlist
From:       Pali Rohár <pali.rohar () gmail ! com>
Date:       2013-03-08 17:52:37
Message-ID: 20130308175237.36AB9AC876 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1343429 by pali:

Do not ignore action moving contact to group from Gui if some accounts are offline

Instead ignoring action "move contact to group" when some accounts are offline
this patch ask user warning message if he really want to move contact to group.
This can be usefull if some accounts are offline and user want to move metacontact
(with contact belong to offline account) into other group.

REVIEW: 6773
BUG: 202862



 M  +6 -1      kopetecontactlistview.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/kopetecontactlistview.cpp \
#1343428:1343429 @@ -442,8 +442,13 @@
 		foreach( Kopete::Contact *c, metaContact->contacts() )
 		{
 			if ( !c->account()->isConnected() )
-				return; // Some contact is offline we can't move it
+			{ // Some accounts are offline we can't move it
+				const QString msg = i18n( "Account %1 is offline. Do you really want to move \
this metacontact?", c->account()->accountLabel() ); +				if ( \
KMessageBox::warningYesNo( this, msg, i18n( "Move contact" ), \
KStandardGuiItem::yes(), KStandardGuiItem::no(), +				                                \
"askMoveMetaContactToGroup", KMessageBox::Notify | KMessageBox::Dangerous ) == \
KMessageBox::No ) +					return;
 		}
+		}
 
 		bool ok = false;
 		uint groupId = d->actionMove->currentAction()->data().toUInt( &ok );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic