[yast-commit] r41441 - /branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc
![](https://seccdn.libravatar.org/avatar/d95f774280866d45941b1365718208ff.jpg?s=120&d=mm&r=g)
Author: kmachalkova Date: Mon Oct 15 18:33:07 2007 New Revision: 41441 URL: http://svn.opensuse.org/viewcvs/yast?rev=41441&view=rev Log: Use item->setSelected, it is less expensive than calling selectItem Modified: branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc Modified: branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc?rev=41441&r1=41440&r2=41441&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc Mon Oct 15 18:33:07 2007 @@ -178,10 +178,10 @@ { //deselect old item oldSelectedItem->setSelected( false ); - //and inform parent widget that a new item has been selected + //explicitely set a new item to selected state //(i.e. override initial selection in construction like this: //`item(`id(1),"foo"), `item (`id(2), "bar, true) ) - selectItem( item ); + item->setSelected( true ); } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org