Pārlūkot izejas kodu

Bug 2071: File panels malfunctions when files are dropped from other application to it

https://winscp.net/tracker/2071

Source commit: 4396946291bfd6f98479e30b6d3d247cd6686583
Martin Prikryl 3 gadi atpakaļ
vecāks
revīzija
3af994733b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/packages/dragndrop/DragDrop.pas

+ 1 - 1
source/packages/dragndrop/DragDrop.pas

@@ -1416,7 +1416,7 @@ begin
     end;
     if dwEffect <> DROPEFFECT_NONE then
     begin
-      if FOwner.FBTF then SetForegroundWindow((FOwner.Owner as TWinControl).Handle);
+      if FOwner.FBTF then SetForegroundWindow(GetParentForm(FOwner.Owner as TWinControl).Handle);
       TDragDrop(FOwner).FdwEffect := dwEffect;
       TDragDrop(FOwner).FgrfKeyState := KeyState;
       TDragDrop(FOwner).Fpt := pt;