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


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

The following commit has been merged in the master branch:
commit 27f0a86498982cdce5f05847cf66ad66a733f6ef
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Thu Mar 10 21:38:56 2011 +0100

    Hopefuly a crash fix
---
 models/accounts-model.cpp | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/models/accounts-model.cpp b/models/accounts-model.cpp
index a48e34f..09b7d25 100644
--- a/models/accounts-model.cpp
+++ b/models/accounts-model.cpp
@@ -26,6 +26,7 @@
 #include "accounts-model.h"
 #include "accounts-model-item.h"
 #include "contact-model-item.h"
+#include <KDebug>
 
 struct AccountsModel::Private
 {
@@ -153,12 +154,12 @@ void AccountsModel::onItemsAdded(TreeNode *parent, const QList<TreeNode *> &node
 void AccountsModel::onItemsRemoved(TreeNode *parent, int first, int last)
 {
     QModelIndex parentIndex = index(parent);
-    QList<TreeNode *> removedItems;
-    beginRemoveRows(parentIndex, first, last);
-    for (int i = last; i >= first; i--) {
-        parent->childAt(i)->remove();
-    }
-    endRemoveRows();
+//     QList<TreeNode *> removedItems;
+//     beginRemoveRows(parentIndex, first, last);
+//     for (int i = last; i >= first; i--) {
+//         parent->childAt(i)->remove();
+//     }
+//     endRemoveRows();
     
     beginRemoveRows(index(parent->parent()), parentIndex.row(), parentIndex.row());
     parent->remove();

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list