[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:06:24 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=883f585

The following commit has been merged in the master branch:
commit 883f5852173548d77c7a908ee5def3170640669f
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Sat May 7 15:39:12 2011 +0200

    Add a check if passed presence is valid. This prevents painting an offline icon when it should not.
    
    Reviewed-by: Francesco Nwokeka
---
 account-button.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/account-button.cpp b/account-button.cpp
index 4b36df8..2ccda54 100644
--- a/account-button.cpp
+++ b/account-button.cpp
@@ -199,10 +199,14 @@ void AccountButton::hideBusyIndicator()
 
 void AccountButton::presenceChanged(const Tp::Presence &presence)
 {
+    if (!presence.isValid()) {
+        return;
+    }
+
     bool accountPresenceFound = false;
 
     foreach (QAction *a, actions()) {
-        if (presence.status() == qVariantValue<Tp::Presence>(a->data()).status()) {
+        if (presence.type() == qVariantValue<Tp::Presence>(a->data()).type()) {
             a->setChecked(true);
             updateToolTip();
 

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list