From 3d4fe9c4d26d1e315f91210664e3c1566f2974f7 Mon Sep 17 00:00:00 2001 From: witekfl Date: Sat, 12 Nov 2011 15:17:53 +0100 Subject: [PATCH] Always do reload after submitting forms. In fact, it does reload after pressing any button, but it should not hurt. To remember to press 'x' for submitting forms was too hard. --- src/viewer/text/link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viewer/text/link.c b/src/viewer/text/link.c index 86535a558..529f17f9a 100644 --- a/src/viewer/text/link.c +++ b/src/viewer/text/link.c @@ -1010,11 +1010,12 @@ activate_link(struct session *ses, struct document_view *doc_view, struct form *form; switch (link->type) { + case LINK_BUTTON: + do_reload = 1; case LINK_HYPERTEXT: case LINK_MAP: case LINK_FIELD: case LINK_AREA: - case LINK_BUTTON: if (goto_link(ses, doc_view, link, do_reload)) return FRAME_EVENT_OK; break;