[project @ 2003-10-26 12:41:51 by jmb]

Make fetch abort finish when auth is required.
Lose the right click performs the opposite action stuff in the login
dialog.

svn path=/import/netsurf/; revision=391
This commit is contained in:
John Mark Bell 2003-10-26 12:41:51 +00:00
parent 350cfd3570
commit 6d036cb630
2 changed files with 9 additions and 14 deletions

View File

@ -397,6 +397,11 @@ void browser_window_callback(content_msg msg, struct content *c,
case CONTENT_MSG_AUTH:
gui_401login_open(bw, c, error);
if (c == bw->loading_content)
bw->loading_content = 0;
else if (c == bw->current_content)
bw->current_content = 0;
browser_window_stop_throbber(bw);
break;
default:

View File

@ -112,22 +112,12 @@ void ro_gui_401login_click(wimp_pointer *pointer) {
switch (pointer->i) {
case ICON_401LOGIN_LOGIN:
if (pointer->buttons == wimp_CLICK_SELECT) {
get_unamepwd();
ro_gui_dialog_close(dialog_401li);
browser_window_open_location(bwin, url);
}
else
ro_gui_dialog_close(dialog_401li);
get_unamepwd();
ro_gui_dialog_close(dialog_401li);
browser_window_open_location(bwin, url);
break;
case ICON_401LOGIN_CANCEL:
if (pointer->buttons == wimp_CLICK_SELECT)
ro_gui_dialog_close(dialog_401li);
else {
get_unamepwd();
ro_gui_dialog_close(dialog_401li);
browser_window_open_location(bwin, url);
}
ro_gui_dialog_close(dialog_401li);
break;
default: break;
}