[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/utils/krecipes/src/widgets
From:       Jason Kivlighn <jkivlighn () gmail ! com>
Date:       2006-08-07 7:55:24
Message-ID: 1154937324.918890.9605.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 570538 by jkivlighn:

Make new categories accessible from Data->Categories without requiring a restart.

 M  +7 -2      categorylistview.cpp  


--- trunk/extragear/utils/krecipes/src/widgets/categorylistview.cpp #570537:570538
@@ -471,8 +471,13 @@
 	else {
 		CategoryListItem *parent = (CategoryListItem*)items_map[ parent_id ];
 
-		if ( parent && parent->isPopulated() ) {
-			new_item = new CategoryListItem( parent, category );
+		if ( parent ) {
+			if ( parent->isPopulated() )
+				new_item = new CategoryListItem( parent, category );
+			else if ( !parent->firstChild() ) {
+				new PseudoListItem( parent );
+				parent->setOpen(true);
+			}
 		}
 	}
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic