From d064f950a733b2e1d65f83f3c2b8370576af3953 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 3 Jul 2006 01:38:13 +0000 Subject: Allow any content to be dragged into a text area (fix 1461378) svn path=/trunk/netsurf/; revision=2701 --- riscos/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/riscos/window.c b/riscos/window.c index 0864ecf8a..64a20296e 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2370,8 +2370,7 @@ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message) gui_window_redraw(bw->window, x, y, x + file_box->width, y + file_box->height); - } - else if (message->data.data_xfer.file_type == osfile_TYPE_TEXT) { + } else { const char *filename = message->data.data_xfer.file_name; @@ -2380,8 +2379,6 @@ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message) if (!ro_gui_window_import_text(g, filename, false)) return true; /* it was for us, it just didn't work! */ } - else - return false; /* only text files allowed in textareas/input fields */ /* send DataLoadAck */ message->action = message_DATA_LOAD_ACK; -- cgit v1.2.3