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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/jabber
From:       Pali Rohár <pali.rohar () gmail ! com>
Date:       2013-06-04 20:23:49
Message-ID: 20130604202349.A4E3CAC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1356895 by pali:

In jabber protocol do not use deprecated function Kopete::Contact::deleteContact() - \
instead use Kopete::DeleteContactTask


 M  +3 -1      jabberprotocol.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/jabber/jabberprotocol.cpp #1356894:1356895
@@ -45,6 +45,7 @@
 #include "kopeteaccountmanager.h"
 #include "addcontactpage.h"
 #include "kopetecommandhandler.h"
+#include "kopetedeletecontacttask.h"
 
 #include "jabbercontact.h"
 #include "jabberaddcontactpage.h"
@@ -471,7 +472,8 @@
 			return;
 		}
 		
-		contact->deleteContact();
+		Kopete::DeleteContactTask *deleteTask = new Kopete::DeleteContactTask(contact);
+		deleteTask->start();
 	}//TODO: probe
 	else if(action == "join" || action=="invite")
 	{


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

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