Author: locilka Date: Tue Jul 15 17:50:25 2008 New Revision: 49116 URL: http://svn.opensuse.org/viewcvs/yast?rev=49116&view=rev Log: Implemented lazy init instead of constructor Modified: trunk/runlevel/src/RunlevelEd.ycp trunk/runlevel/src/runlevel.ycp trunk/runlevel/src/runlevel_auto.ycp trunk/runlevel/src/runlevel_proposal.ycp Modified: trunk/runlevel/src/RunlevelEd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/src/RunlevelEd.ycp?rev=4... ============================================================================== --- trunk/runlevel/src/RunlevelEd.ycp (original) +++ trunk/runlevel/src/RunlevelEd.ycp Tue Jul 15 17:50:25 2008 @@ -1005,11 +1005,11 @@ boolean already_initialized = false; /** - * Constructor... + * Init function. * * @see FATE #303798: YaST2 runlevel editor: offer easy enablement and configuration of runlevel 4 */ - global void RunlevelEd () { + global void Init () { if (already_initialized) return; Modified: trunk/runlevel/src/runlevel.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/src/runlevel.ycp?rev=491... ============================================================================== --- trunk/runlevel/src/runlevel.ycp (original) +++ trunk/runlevel/src/runlevel.ycp Tue Jul 15 17:50:25 2008 @@ -211,7 +211,7 @@ y2milestone("----------------------------------------"); y2milestone("System service (runlevel) started"); - +RunlevelEd::Init(); any ret = CommandLine::Run(cmdline); y2milestone("System service (runlevel) finished"); Modified: trunk/runlevel/src/runlevel_auto.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/src/runlevel_auto.ycp?re... ============================================================================== --- trunk/runlevel/src/runlevel_auto.ycp (original) +++ trunk/runlevel/src/runlevel_auto.ycp Tue Jul 15 17:50:25 2008 @@ -46,7 +46,7 @@ y2debug("param=%1", param); - +RunlevelEd::Init(); // We take data from underlying system // RunlevelEd::Read (); Modified: trunk/runlevel/src/runlevel_proposal.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/src/runlevel_proposal.yc... ============================================================================== --- trunk/runlevel/src/runlevel_proposal.ycp (original) +++ trunk/runlevel/src/runlevel_proposal.ycp Tue Jul 15 17:50:25 2008 @@ -30,6 +30,8 @@ map param = (map) WFM::Args(1); map ret = $[]; +RunlevelEd::Init(); + // Bugzilla #166918 boolean CheckSelectedRunlevel (string selected_runlevel) { if (selected_runlevel == nil) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org