[yast-commit] r55851 - /branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp
Author: jreidinger Date: Mon Mar 2 16:38:49 2009 New Revision: 55851 URL: http://svn.opensuse.org/viewcvs/yast?rev=55851&view=rev Log: correctly implement fix for changing name of default section and avoid automatic name conversion, this should be in validate section Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp?rev=55851&r1=55850&r2=55851&view=diff ============================================================================== --- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp (original) +++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/section_widgets.ycp Mon Mar 2 16:38:49 2009 @@ -93,12 +93,13 @@ */ void SectionNameStore (string widget, map event) { string value = (string)UI::QueryWidget (`id (widget), `Value); - if (Bootloader::getLoaderType () != "grub") - { - value = BootCommon::replaceAll (value, " ", "_"); - if (size (value) > 15) - value = substring (value, 0, 15); + + //check if we need change default value in globals + if ( BootCommon::globals["default"]:nil + == BootCommon::current_section[widget]:""){ + BootCommon::globals["default"] = value; } + BootCommon::current_section[widget] = value; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jreidinger@svn.opensuse.org