lcl: gtk2: fixed error handling in GtkDragDataReceived, bug #32611, patch from C Western

git-svn-id: branches/fixes_1_8@56198 -
This commit is contained in:
mattias 2017-10-25 20:21:28 +00:00
parent 99aa0481e5
commit 86165e04d5

View File

@ -3435,7 +3435,7 @@ begin
Result := False; Result := False;
if selection_data^.data <> nil then // data is list of uri if selection_data^.data <> nil then // data is list of uri
begin try
SetLength(Files, 0); SetLength(Files, 0);
S := TStringList.Create; S := TStringList.Create;
try try
@ -3481,6 +3481,8 @@ begin
Result := True; Result := True;
end; end;
except
Application.HandleException(nil);
end; end;
gtk_drag_finish(Context, Result, false, time); gtk_drag_finish(Context, Result, false, time);