KDE/kdesdk/kompare/komparenavtreepart

Kevin Kofler kevin.kofler at chello.at
Tue Feb 16 01:33:46 CET 2010


SVN commit 1090782 by kkofler:

Fix regression in revision 1090752 (duplicate entries in the directory tree).
Patch by Jakub Wieczorek <faw217 at gmail.com>
Regression confirmed fixed by me (Fedora 12, KDE 4.3.5, i686).

CCMAIL: faw217 at gmail.com
CCMAIL: kompare-devel at kde.org

 M  +4 -0      komparenavtreepart.cpp  


--- trunk/KDE/kdesdk/kompare/komparenavtreepart/komparenavtreepart.cpp #1090781:1090782
@@ -678,6 +678,8 @@
 	{ // has children, check if dir already exists, if so addModel
 		QTreeWidgetItemIterator it(child);
 		while (*it) {
+			child = static_cast<KDirLVI*>(*it);
+
 			if ( dir == child->dirName() )
 				return child;
 			++it;
@@ -743,6 +745,8 @@
 
 	QTreeWidgetItemIterator it(child);
 	while (*it) {
+		child = static_cast<KDirLVI*>(*it);
+
 		if ( dir.startsWith( child->dirName() ) )
 			return child->setSelected( dir );
 		++it;


More information about the Kompare-devel mailing list