[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=77edad2

The following commit has been merged in the master branch:
commit 77edad227ab30db1e9f6c37247b7f7b1de2861b3
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Thu Mar 10 21:59:01 2011 +0000

    Fix crash when the model size and data structures came out of sync
---
 models/tree-node.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/models/tree-node.cpp b/models/tree-node.cpp
index 8d7a912..dc370fd 100644
--- a/models/tree-node.cpp
+++ b/models/tree-node.cpp
@@ -46,9 +46,7 @@ TreeNode::TreeNode()
 
 TreeNode::~TreeNode()
 {
-    if (mPriv->mParent) {
-        mPriv->mParent->mPriv->mChildren.removeOne(this);
-    }
+
     delete mPriv;
 }
 
@@ -117,6 +115,9 @@ void TreeNode::remove()
                    SIGNAL(childrenRemoved(TreeNode*,int,int)),
                    mPriv->mParent,
                    SIGNAL(childrenRemoved(TreeNode*,int,int)));
+
+        mPriv->mParent->mPriv->mChildren.removeOne(this);
     }
+
     deleteLater();
 }
\ No newline at end of file

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list