[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91
    Maximiliano Curia 
    maxy at moszumanska.debian.org
       
    Sat May 28 00:15:14 UTC 2016
    
    
  
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=a48ed4f
The following commit has been merged in the master branch:
commit a48ed4f3c68bdfff1935682848bc1ebba52a0a0f
Author: Martin Klapetek <mklapetek at kde.org>
Date:   Wed Mar 18 16:03:43 2015 +0100
    Don't create PersonData just to get the person ID
    
    It can be obtained directly from the model
---
 context-menu.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/context-menu.cpp b/context-menu.cpp
index 2870aad..b193408 100644
--- a/context-menu.cpp
+++ b/context-menu.cpp
@@ -106,8 +106,7 @@ QMenu* ContextMenu::contactContextMenu(const QModelIndex &index)
         if (index.parent().isValid()) {
             menu->addActions(KPeople::actionsForPerson(index.data(KTp::ContactUriRole).toString(), menu));
         } else {
-            KPeople::PersonData p(index.data(KTp::PersonIdRole).toString());
-            menu->addActions(KPeople::actionsForPerson(p.personUri(), menu));
+            menu->addActions(KPeople::actionsForPerson(index.data(KTp::PersonIdRole).toString(), menu));
         }
     #endif
     } else {
-- 
ktp-contact-list packaging
    
    
More information about the pkg-kde-commits
mailing list