From 3a3e27b7c67ca488c16a0754a63221f876ed5188 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 25 Jan 2006 00:33:00 +0000 Subject: [project @ 2006-01-25 00:33:00 by rjw] Supress error message if parent window is already closed. svn path=/import/netsurf/; revision=2037 --- riscos/dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'riscos') diff --git a/riscos/dialog.c b/riscos/dialog.c index 74238b57e..7946a1146 100644 --- a/riscos/dialog.c +++ b/riscos/dialog.c @@ -357,7 +357,8 @@ void ro_gui_dialog_close(wimp_w close) persistent_dialog[i].parent, wimp_ICON_WINDOW, -100, -100, 32, -1); - if (error) { + /* parent may have been closed first */ + if ((error) && (error->errnum != 0x287)) { LOG(("xwimp_set_caret_position: " "0x%x: %s", error->errnum, -- cgit v1.2.3