Tidy up when drag save aborted (fixes assert when dragging URL to same window)

svn path=/trunk/netsurf/; revision=4043
This commit is contained in:
Adrian Lees 2008-03-23 06:07:40 +00:00
parent 084bcd631a
commit 175395b52d
1 changed files with 4 additions and 1 deletions

View File

@ -484,8 +484,11 @@ void ro_gui_save_drag_end(wimp_dragged *drag)
}
/* ignore drags that remain within the source window */
if (gui_save_sourcew != (wimp_w)-1 && pointer.w == gui_save_sourcew)
if (gui_save_sourcew != (wimp_w)-1 && pointer.w == gui_save_sourcew) {
/* cancel the drag operation */
gui_current_drag_type = GUI_DRAG_NONE;
return;
}
if (!saving_from_dialog) {
/* saving directly from browser window, choose a