summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_interaction.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-11-07 18:52:49 +0000
committerVincent Sanders <vince@kyllikki.org>2019-11-07 18:52:49 +0000
commit570f2dc03608d525ef02102ff0ca8225d57b40ed (patch)
tree958695b65c50b5b01117b25a782945d0e7ac64a4 /content/handlers/html/html_interaction.c
parent7de3100624bf77980e92f8e507a209dfe34a8309 (diff)
downloadnetsurf-570f2dc03608d525ef02102ff0ca8225d57b40ed.tar.gz
netsurf-570f2dc03608d525ef02102ff0ca8225d57b40ed.tar.bz2
remove user warning and fix up error handling in form select menus
Diffstat (limited to 'content/handlers/html/html_interaction.c')
-rw-r--r--content/handlers/html/html_interaction.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c
index 330dd24d0..4de15f872 100644
--- a/content/handlers/html/html_interaction.c
+++ b/content/handlers/html/html_interaction.c
@@ -716,9 +716,15 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
if (mouse & BROWSER_MOUSE_CLICK_1 &&
nsoption_bool(core_select_menu)) {
html->visible_select_menu = gadget;
- form_open_select_menu(c, gadget,
+ res = form_open_select_menu(c, gadget,
form_select_menu_callback,
c);
+ if (res != NSERROR_OK) {
+ NSLOG(netsurf, ERROR,
+ "%s",
+ messages_get_errorcode(res));
+ html->visible_select_menu = NULL;
+ }
pointer = BROWSER_POINTER_DEFAULT;
} else if (mouse & BROWSER_MOUSE_CLICK_1) {
msg_data.select_menu.gadget = gadget;