mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Can not cancel file operation then it paused
This commit is contained in:
parent
428518ff9c
commit
289e250cb2
1 changed files with 6 additions and 1 deletions
|
|
@ -61,7 +61,12 @@ uses
|
|||
procedure TfrmFileOp.btnCancelClick(Sender: TObject);
|
||||
begin
|
||||
if Assigned(Thread) then
|
||||
Thread.Terminate;
|
||||
begin
|
||||
Thread.Terminate;
|
||||
if Thread is TFileOpThread then
|
||||
with Thread as TFileOpThread do
|
||||
if Paused then Paused:= False;
|
||||
end;
|
||||
ModalResult := mrCancel;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue