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

git-svn-id: trunk@56193 -
This commit is contained in:
mattias 2017-10-25 16:21:50 +00:00
parent 3e6aa6d36d
commit c448ca8778
2 changed files with 4 additions and 5 deletions

View File

@ -21,15 +21,12 @@ Working:
- reference foreign root, reference foreign component - reference foreign root, reference foreign component
- create components before setting properties to avoid having to set references - create components before setting properties to avoid having to set references
later later
- inline component, csInline, call SetInline - inline component, csInline, call SetInline, inherited inline, inline on inherited
ToDo: ToDo:
- enum: add unit, avoid nameclash with-do - enum: add unit, avoid nameclash with-do
- custom integer TColor, add unit, avoid nameclash with-do - custom integer TColor, add unit, avoid nameclash with-do
- method, avoid nameclash with-do - method, avoid nameclash with-do
- inline with ancestor
- ancestor with inline
- inline in inline
- TComponent.Left/Right - TComponent.Left/Right
- DefineProperties - DefineProperties
- tkInterface - tkInterface

View File

@ -3493,7 +3493,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
@ -3539,6 +3539,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);