[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:04:31 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=71a74e6
The following commit has been merged in the master branch:
commit 71a74e6175016263aa8ec3cf621e56355de11f24
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.
---
models/accounts-model-item.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/models/accounts-model-item.cpp b/models/accounts-model-item.cpp
index d6fa8aa..6facdea 100644
--- a/models/accounts-model-item.cpp
+++ b/models/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-common-internals packaging
More information about the pkg-kde-commits
mailing list