[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/libakonadi
From: Volker Krause <volker.krause () rwth-aachen ! de>
Date: 2006-02-04 18:29:46
Message-ID: 1139077786.008781.16452.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 505737 by vkrause:
Fix removal of orphan collections.
M +4 -0 collectionmodel.cpp
--- trunk/KDE/kdepim/libakonadi/collectionmodel.cpp #505736:505737
@@ -268,6 +268,10 @@
return QModelIndex();
DataReference parentRef = d->collections.value( ref )->parent();
+ // check if parent still exist or if this is an orphan collection
+ if ( !parentRef.isNull() && !d->collections.contains( parentRef ) )
+ return QModelIndex();
+
DataReference::List list = d->childCollections.value( parentRef );
int row = list.indexOf( ref );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic