Author: locilka Date: Thu Apr 17 20:02:41 2008 New Revision: 46798 URL: http://svn.opensuse.org/viewcvs/yast?rev=46798&view=rev Log: - fixed initializing of combo-box widgets in dialogs, ComboBox in Qt does not accept `Value, using `Items instead (bnc #380781). Modified: trunk/bootloader/package/yast2-bootloader.changes trunk/bootloader/src/generic/widget_funcs.ycp Modified: trunk/bootloader/package/yast2-bootloader.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/package/yast2-bootloader.changes?rev=46798&r1=46797&r2=46798&view=diff ============================================================================== --- trunk/bootloader/package/yast2-bootloader.changes (original) +++ trunk/bootloader/package/yast2-bootloader.changes Thu Apr 17 20:02:41 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Apr 17 20:02:19 CEST 2008 - locilka@suse.cz, juhliarik@suse.cz + +- fixed initializing of combo-box widgets in dialogs, ComboBox + in Qt does not accept `Value, using `Items instead (bnc #380781). + +------------------------------------------------------------------- Wed Apr 16 15:20:15 CEST 2008 - juhliarik@suse.cz - added fix for activating DM-RAID boot partition (bnc #337742) Modified: trunk/bootloader/src/generic/widget_funcs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/generic/widget_funcs.ycp?rev=46798&r1=46797&r2=46798&view=diff ============================================================================== --- trunk/bootloader/src/generic/widget_funcs.ycp (original) +++ trunk/bootloader/src/generic/widget_funcs.ycp Thu Apr 17 20:02:41 2008 @@ -299,7 +299,14 @@ } else if (contains(["string", "path", "select", "selectdevice"], (string)value)) { - UI::ChangeWidget (`id (key), `Value, data[key]:""); + + // ComboBox doesn't accept `Value, use `Items instead + // See bnc #380781 + if (UI::QueryWidget (`id (key), `WidgetClass) == "YComboBox") { + UI::ChangeWidget (`id (key), `Items, [data[key]:""]); + } else { + UI::ChangeWidget (`id (key), `Value, data[key]:""); + } } else if (value == "password") { UI::ChangeWidget (`id (key + "_pw1"), `Value, "**********"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org