Author: locilka Date: Mon Sep 10 11:04:09 2007 New Revision: 40825 URL: http://svn.opensuse.org/viewcvs/yast?rev=40825&view=rev Log: - Calling SetFocus in SourceDialogs for http, https, samba, and ftp repositories to adjust the initial tab-order correctly (#305074). Modified: trunk/packager/src/modules/SourceDialogs.ycp Modified: trunk/packager/src/modules/SourceDialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SourceDialog... ============================================================================== --- trunk/packager/src/modules/SourceDialogs.ycp (original) +++ trunk/packager/src/modules/SourceDialogs.ycp Mon Sep 10 11:04:09 2007 @@ -709,6 +709,19 @@ } +void InitFocusServerInit (symbol server_type) { + switch (server_type) { + case (`ftp) : UI::SetFocus (`server); + break; + case (`http) : UI::SetFocus (`server); + break; + case (`https) : UI::SetFocus (`server); + break; + case (`samba) : UI::SetFocus (`server); + break; + } +} + // HTTP(s)/FTP/SMB/CIFS repository widget /** @@ -802,6 +815,8 @@ if (UI::WidgetExists (`id (`workgroup))) UI::ChangeWidget (`id (`workgroup), `Enabled, !anonymous); + InitFocusServerInit ((symbol) id); + return nil; } if (event["ID"]:nil == `anonymous) @@ -905,6 +920,8 @@ UI::ChangeWidget(`id(`port), `Value, port_num); } } + + InitFocusServerInit (type); } boolean ServerValidate (string key, map event) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org