Author: kmachalkova Date: Tue Jan 8 11:46:41 2008 New Revision: 43316 URL: http://svn.opensuse.org/viewcvs/yast?rev=43316&view=rev Log: - Fixed crash when running text-mode menu as non-root user (new libyui throws an exception if SelectionBox entry is nil) Modified: trunk/yast2/library/desktop/src/menu.ycp trunk/yast2/package/yast2.changes Modified: trunk/yast2/library/desktop/src/menu.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/desktop/src/menu.ycp?rev=43316&r1=43315&r2=43316&view=diff ============================================================================== --- trunk/yast2/library/desktop/src/menu.ycp (original) +++ trunk/yast2/library/desktop/src/menu.ycp Tue Jan 8 11:46:41 2008 @@ -257,12 +257,10 @@ y2debug("first=%1", first); //do not show groups containing no modules to the user (#309452) -GroupList = maplist (term t, GroupList,{ +GroupList = filter (term t, GroupList,{ string group = (string) t[0,0]:""; - if ( modules[group]:nil != [] ) { - return t; - } + return ( modules[group]:nil != [] ); }); /* GroupList = [`item (`id ("Software"), "Software"), ...] */ Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=43316&r1=43315&r2=43316&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Tue Jan 8 11:46:41 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jan 8 11:40:54 CET 2008 - kmachalkova@suse.cz + +- Fixed crash when running text-mode menu as non-root user (new + libyui throws an exception if SelectionBox entry is nil) + +------------------------------------------------------------------- Tue Jan 8 10:42:05 CET 2008 - jsrain@suse.cz - offer possibility to define UI via cmdline parameter (#348817) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org