Author: kmachalkova Date: Fri Jan 16 17:07:35 2009 New Revision: 54718 URL: http://svn.opensuse.org/viewcvs/yast?rev=54718&view=rev Log: nitpicking :) Modified: branches/SuSE-Code-11-Branch/storage/storage/src/include/ep-dialogs.ycp Modified: branches/SuSE-Code-11-Branch/storage/storage/src/include/ep-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/storage/storage/src/include/ep-dialogs.ycp?rev=54718&r1=54717&r2=54718&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/storage/storage/src/include/ep-dialogs.ycp (original) +++ branches/SuSE-Code-11-Branch/storage/storage/src/include/ep-dialogs.ycp Fri Jan 16 17:07:35 2009 @@ -486,11 +486,12 @@ symbol widget = nil; + //don't put those inside the loop - they'd be reset after each unsuccesful try + UI::ChangeWidget(`id(`pw1), `Value, ""); + UI::ChangeWidget(`id(`pw2), `Value, ""); + repeat { - UI::ChangeWidget(`id(`pw1), `Value, ""); - UI::ChangeWidget(`id(`pw2), `Value, ""); - widget = MiniWorkflow::UserInput(); if (widget == `next) @@ -502,6 +503,7 @@ { // popup text Popup::Message(_("The first and the second version\nof the password do not match!\nPlease try again.")); + UI::SetFocus(`id(`pw1) ); widget = `again; } else if (pw1 == "" && !empty_pw_allowed) @@ -510,6 +512,7 @@ Popup::Message(_("You did not enter a password. Try again. ")); + UI::SetFocus(`id(`pw1) ); widget = `again; } else if (size(pw1) < min_pw_len && !empty_pw_allowed) @@ -518,6 +521,7 @@ Popup::Message(sformat(_("The password must have at least %1 characters. Try again. "), min_pw_len)); + UI::SetFocus(`id(`pw1) ); widget = `again; } else if (size(pw1) >= min_pw_len || empty_pw_allowed) @@ -529,6 +533,7 @@ Popup::Message(_("The password may only contain the following characters: 0..9, a..z, A..Z, and any of \"@#* ,.;:._-+!$%&/|\?{[()]}^\\<>\". Try again.")); + UI::SetFocus(`id(`pw1) ); widget = `again; } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org