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


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

The following commit has been merged in the master branch:
commit d4005cbbb6b4a51dec556af514c32dc3964dc15d
Author: George Kiagiadakis <george.kiagiadakis at collabora.com>
Date:   Fri May 20 12:20:01 2011 +0300

    When we disconnect, do not attempt to remove the AccountModelItem's children if there aren't any.
    
    This fixes an assertion failure in QAbstractItemModel::beginRemoveRows()
    which is called from a slot connected to that signal.
---
 accounts-model-item.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/accounts-model-item.cpp b/accounts-model-item.cpp
index d6fa8aa..6facdea 100644
--- a/accounts-model-item.cpp
+++ b/accounts-model-item.cpp
@@ -299,7 +299,9 @@ void AccountsModelItem::onConnectionChanged(const Tp::ConnectionPtr &connection)
     if (connection.isNull()
             || !connection->isValid()
             || connection->status() == Tp::ConnectionStatusDisconnected) {
-        emit childrenRemoved(this, 0, size() - 1);
+        if (size() > 0) {
+            emit childrenRemoved(this, 0, size() - 1);
+        }
         return;
     }
 

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list