[yast-commit] r41439 - /branches/tmp/sh/mod-ui/core/libyui/src/YSelectionWidget.cc
Author: kmachalkova Date: Mon Oct 15 18:10:39 2007 New Revision: 41439 URL: http://svn.opensuse.org/viewcvs/yast?rev=41439&view=rev Log: Fixed explicit selecting other than 1st item e.g (`item(`id(1),"foo"), `item (`id(2), "bar, true) if single selection is enforced 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=41439&r1=41438&r2=41439&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:10:39 2007 @@ -176,7 +176,12 @@ if ( oldSelectedItem && oldSelectedItem != item ) { + //deselect old item oldSelectedItem->setSelected( false ); + //and inform parent widget that a new item has been selected + //(i.e. override initial selection in construction like this: + //`item(`id(1),"foo"), `item (`id(2), "bar, true) ) + selectItem( item ); } } -- 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