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


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

The following commit has been merged in the master branch:
commit e2ea0977063bef6fb6d3dfc6b1923dfae07b25b3
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Tue Mar 26 23:31:13 2013 +0100

    New items need to be appended to sourceParent index, not the index itself
    
    Part of review 109727
---
 KTp/Models/abstract-grouping-proxy-model.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/KTp/Models/abstract-grouping-proxy-model.cpp b/KTp/Models/abstract-grouping-proxy-model.cpp
index 95db89b..40aa936 100644
--- a/KTp/Models/abstract-grouping-proxy-model.cpp
+++ b/KTp/Models/abstract-grouping-proxy-model.cpp
@@ -197,8 +197,8 @@ void KTp::AbstractGroupingProxyModel::onRowsInserted(const QModelIndex &sourcePa
     } else {
         for (int i = start; i <= end; i++) {
             QModelIndex index = d->source->index(i, 0, sourceParent);
-            QHash<QPersistentModelIndex, ProxyNode*>::const_iterator it = d->proxyMap.find(index);
-            while (it != d->proxyMap.end()  && it.key() == index) {
+            QHash<QPersistentModelIndex, ProxyNode*>::const_iterator it = d->proxyMap.find(sourceParent);
+            while (it != d->proxyMap.end()  && it.key() == sourceParent) {
                 addProxyNode(index, it.value());
                 it++;
             }

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list