[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:08:12 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=3c6f812

The following commit has been merged in the master branch:
commit 3c6f812719cc66c0ceee09a9e8ea509085902489
Author: Leon Handreke <leonh at ndreke.de>
Date:   Mon Apr 14 12:58:15 2014 +0200

    Emit Contact::clientTypesChanged() when presence changes
    
    Temporary workaround for upstream bug
    https://bugs.freedesktop.org/show_bug.cgi?id=55883
    
    Close https://bugs.kde.org/show_bug.cgi?id=308217 when fixed upstream
    
    REVIEW: 117558
    Reviewed-By: David Edmundson <david at davidedmundson.co.uk>
---
 KTp/contact.cpp | 9 +++++++++
 KTp/contact.h   | 1 +
 2 files changed, 10 insertions(+)

diff --git a/KTp/contact.cpp b/KTp/contact.cpp
index 8e00589..ff83109 100644
--- a/KTp/contact.cpp
+++ b/KTp/contact.cpp
@@ -43,6 +43,15 @@ KTp::Contact::Contact(Tp::ContactManager *manager, const Tp::ReferencedHandles &
     connect(manager->connection().data(), SIGNAL(invalidated(Tp::DBusProxy*,QString,QString)), SIGNAL(invalidated()));
     connect(this, SIGNAL(avatarTokenChanged(QString)), SLOT(invalidateAvatarCache()));
     connect(this, SIGNAL(avatarDataChanged(Tp::AvatarData)), SLOT(invalidateAvatarCache()));
+    connect(this, SIGNAL(presenceChanged(Tp::Presence)), SIGNAL(onPresenceChanged(Tp::Presence)));
+}
+
+void KTp::Contact::onPresenceChanged(const Tp::Presence &presence)
+{
+    Q_UNUSED(presence)
+    /* Temporary workaround for upstream bug https://bugs.freedesktop.org/show_bug.cgi?id=55883)
+     * Close https://bugs.kde.org/show_bug.cgi?id=308217 when fixed upstream */
+    Q_EMIT clientTypesChanged(clientTypes());
 }
 
 QString KTp::Contact::accountUniqueIdentifier() const
diff --git a/KTp/contact.h b/KTp/contact.h
index 053d082..e8bfc08 100644
--- a/KTp/contact.h
+++ b/KTp/contact.h
@@ -63,6 +63,7 @@ Q_SIGNALS:
 
 private Q_SLOTS:
     void invalidateAvatarCache();
+    void onPresenceChanged(const Tp::Presence &presence);
 
 private:
     static QStringList getCommonElements(const QStringList &list1, const QStringList &list2);

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list