[yast-commit] r54353 - /trunk/packager/src/clients/repositories.ycp
Author: lslezak Date: Wed Dec 31 14:55:15 2008 New Revision: 54353 URL: http://svn.opensuse.org/viewcvs/yast?rev=54353&view=rev Log: - preselect the correct (current) view in the combobox widget Modified: trunk/packager/src/clients/repositories.ycp Modified: trunk/packager/src/clients/repositories.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/repositories.ycp?rev=54353&r1=54352&r2=54353&view=diff ============================================================================== --- trunk/packager/src/clients/repositories.ycp (original) +++ trunk/packager/src/clients/repositories.ycp Wed Dec 31 14:55:15 2008 @@ -558,13 +558,13 @@ list<term> buildList() { list<term> ret = [ - `item(`id(`all_repositories), _("All repositories")), - `item(`id(`all_services), _("All services")) + `item(`id(`all_repositories), _("All repositories"), repository_view), + `item(`id(`all_services), _("All services"), !repository_view && displayed_service == "") ]; foreach(map<string,any> srv_state, serviceStatesOut, { - term t = `item(`id(srv_state["alias"]:""), sformat(_("Service '%1'"), srv_state["name"]:"")); + term t = `item(`id(srv_state["alias"]:""), sformat(_("Service '%1'"), srv_state["name"]:""), repository_view && displayed_service == srv_state["alias"]:""); ret = add(ret, t); } ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org