Author: gs Date: Thu Nov 15 12:29:22 2007 New Revision: 42070 URL: http://svn.opensuse.org/viewcvs/yast?rev=42070&view=rev Log: cloneTree() should work like this - but it adds items repeatedly Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc?rev=42070&r1=42069&r2=42070&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Thu Nov 15 12:29:22 2007 @@ -309,16 +309,20 @@ { NCMIL << "Rpm group (translated): " << child->value().translation() << endl; - if ( !parentClone ) - clone = new NCRpmGroupItem( child->value().translation(), child ); - else + if ( parentClone ) + { + NCMIL << "with Parent: " << child->value().translation() << endl; clone = new NCRpmGroupItem( parentClone, child->value().translation(), child ); + } + else + { + NCMIL << "WITHOUT Parent: " << child->value().translation() << endl; + clone = new NCRpmGroupItem( child->value().translation(), child ); + } addItem( clone ); - clone = parentClone; cloneTree( child, clone ); - child = child->next(); } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org