mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Abort FileSourceOperation
This commit is contained in:
parent
cd3db6e871
commit
aca79a3b30
1 changed files with 8 additions and 11 deletions
|
|
@ -806,19 +806,16 @@ end;
|
|||
|
||||
function TFileSourceOperation.AppProcessMessages(CheckState: Boolean): Boolean;
|
||||
begin
|
||||
if GetCurrentThreadId <> MainThreadID then
|
||||
if GetCurrentThreadId = MainThreadID then
|
||||
begin
|
||||
if CheckState then CheckOperationState;
|
||||
end
|
||||
else begin
|
||||
WidgetSet.AppProcessMessages;
|
||||
if CheckState then
|
||||
try
|
||||
CheckOperationState;
|
||||
except
|
||||
on E: EFileSourceOperationAborting do
|
||||
Exit(False);
|
||||
end;
|
||||
end;
|
||||
if CheckState then
|
||||
try
|
||||
CheckOperationState;
|
||||
except
|
||||
on E: EFileSourceOperationAborting do
|
||||
Exit(False);
|
||||
end;
|
||||
Result:= True;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue