[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:39 UTC 2016
    
    
  
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=85a0fb8
The following commit has been merged in the master branch:
commit 85a0fb8318c467dd626eda227112151d628e6097
Author: Martin Klapetek <mklapetek at kde.org>
Date:   Tue Feb 3 19:44:26 2015 +0100
    Temporary fix for a crash when going offline
    
    There seems to be something wrong with the offline cache, this is a
    temporary fix to not make the contact list crash when going offline.
    
    I'll investigate properly tomorrow.
---
 KTp/Models/kpeopletranslationproxy.cpp | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/KTp/Models/kpeopletranslationproxy.cpp b/KTp/Models/kpeopletranslationproxy.cpp
index d241047..1c0e4d0 100644
--- a/KTp/Models/kpeopletranslationproxy.cpp
+++ b/KTp/Models/kpeopletranslationproxy.cpp
@@ -123,6 +123,9 @@ QVariant KPeopleTranslationProxy::data(const QModelIndex &proxyIndex, int role)
 
 QVariant KPeopleTranslationProxy::dataForKTpContact(const QString &accountPath, const QString &contactId, int role) const
 {
+    if (accountPath.isEmpty()) {
+        return QVariant();
+    }
     if (role == KTp::AccountRole) {
         return QVariant::fromValue<Tp::AccountPtr>(KTp::contactManager()->accountForAccountPath(accountPath));
     }
-- 
ktp-common-internals packaging
    
    
More information about the pkg-kde-commits
mailing list