1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +02:00

Bug 158756 - allow saving an empty password

This commit is contained in:
David Dykstal 2006-11-07 19:45:41 +00:00
parent 1b098a02de
commit 1a8ea54117

View file

@ -204,8 +204,6 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
SystemWidgetHelpers.createLabel(composite_prompts, "");
savePasswordCB = SystemWidgetHelpers.createCheckBox(composite_prompts, 1, this, SystemResources.RESID_PASSWORD_SAVE_LABEL, SystemResources.RESID_PASSWORD_SAVE_TOOLTIP);
savePasswordCB.setSelection(savePassword);
// disable until the user enters something for consistency with the save user ID checkbox
savePasswordCB.setEnabled(false);
}
initializeInput();
@ -449,7 +447,7 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
controlInError = textPassword;
}
}
if (getErrorMessage() != null) {
if (controlInError != null) {
controlInError.setFocus(); // validate methods already displayed error message
}
}