Author: lslezak Date: Wed Aug 6 15:35:34 2008 New Revision: 49773 URL: http://svn.opensuse.org/viewcvs/yast?rev=49773&view=rev Log: - preselect the first redaibutton in the arch dialog Modified: branches/tmp/lslezak/product-creator-cross-arch/src/dialogs.ycp Modified: branches/tmp/lslezak/product-creator-cross-arch/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/product-creator-cross-arch/src/dialogs.ycp?rev=49773&r1=49772&r2=49773&view=diff ============================================================================== --- branches/tmp/lslezak/product-creator-cross-arch/src/dialogs.ycp (original) +++ branches/tmp/lslezak/product-creator-cross-arch/src/dialogs.ycp Wed Aug 6 15:35:34 2008 @@ -430,10 +430,13 @@ { term widget = `VBox(); - // TODO: preselect the first item? + boolean preselect = true; + + // preselect the first item foreach(string a, archs, { - widget = add(widget, `MinWidth(25, `Left(`RadioButton(`id(a), a)))); + widget = add(widget, `MinWidth(25, `Left(`RadioButton(`id(a), a, preselect)))); + preselect = false; } ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org