[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:24:21 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=02748f3

The following commit has been merged in the master branch:
commit 02748f301ea94b8a2da4ad646040401bc1721b06
Author: Siddhartha Sahu <sh.siddhartha at gmail.com>
Date:   Thu Nov 14 07:41:39 2013 +0530

    Small optimization for loading contact's icon
    
    Reviewed-by: David Edmundson
---
 lib/chat-widget.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index b8b7295..ffd99f7 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -223,11 +223,8 @@ KIcon ChatWidget::icon() const
         //normal chat - self and one other person.
         if (!d->isGroupChat) {
             //find the other contact which isn't self.
-            Q_FOREACH(const Tp::ContactPtr & contact, d->channel->groupContacts()) {
-                if (contact != d->channel->groupSelfContact()) {
-                    return KTp::Presence(contact->presence()).icon();
-                }
-            }
+            Tp::ContactPtr otherContact = d->channel->targetContact();
+            return KTp::Presence(otherContact->presence()).icon();
         }
         else {
             //group chat

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list