respond w/ "" if user hits esc to password prompt

This is so when we load the next plugin it won't
get confused.
This commit is contained in:
Ray Strode 2008-08-27 16:01:28 -04:00
parent 5534d814aa
commit e962a0bbd9
4 changed files with 24 additions and 0 deletions

View file

@ -205,6 +205,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
ply_trace ("hiding splash screen");
if (plugin->pending_password_answer != NULL)
{
ply_answer_with_string (plugin->pending_password_answer, "");
plugin->pending_password_answer = NULL;
}
ply_window_set_keyboard_input_handler (window, NULL, NULL);
ply_window_set_backspace_handler (window, NULL, NULL);
ply_window_set_enter_handler (window, NULL, NULL);

View file

@ -578,6 +578,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
{
assert (plugin != NULL);
if (plugin->pending_password_answer != NULL)
{
ply_answer_with_string (plugin->pending_password_answer, "");
plugin->pending_password_answer = NULL;
}
ply_window_set_keyboard_input_handler (window, NULL, NULL);
ply_window_set_backspace_handler (window, NULL, NULL);
ply_window_set_enter_handler (window, NULL, NULL);

View file

@ -387,6 +387,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
{
assert (plugin != NULL);
if (plugin->pending_password_answer != NULL)
{
ply_answer_with_string (plugin->pending_password_answer, "");
plugin->pending_password_answer = NULL;
}
ply_window_set_keyboard_input_handler (window, NULL, NULL);
ply_window_set_backspace_handler (window, NULL, NULL);
ply_window_set_enter_handler (window, NULL, NULL);

View file

@ -253,6 +253,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
ply_trace ("hiding splash screen");
if (plugin->pending_password_answer != NULL)
{
ply_answer_with_string (plugin->pending_password_answer, "");
plugin->pending_password_answer = NULL;
}
ply_window_set_keyboard_input_handler (window, NULL, NULL);
ply_window_set_backspace_handler (window, NULL, NULL);
ply_window_set_enter_handler (window, NULL, NULL);