mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [0001356] Unhandled exception: Exception: No files selected.
This commit is contained in:
parent
4a96b19f8a
commit
aba36fe0c6
1 changed files with 3 additions and 5 deletions
|
|
@ -2259,10 +2259,9 @@ begin
|
|||
|
||||
if Assigned(theFilesToDelete) then
|
||||
try
|
||||
if (theFilesToDelete.Count = 0) then Exit;
|
||||
Message:= frmMain.GetFileDlgStr(MsgDelSel,MsgDelFlDr,theFilesToDelete);
|
||||
if (theFilesToDelete.Count > 0) and
|
||||
((not bConfirmation) or
|
||||
(ShowDeleteDialog(Message, FileSource, QueueId))) then
|
||||
if (bConfirmation = False) or (ShowDeleteDialog(Message, FileSource, QueueId)) then
|
||||
begin
|
||||
if FileSource.IsClass(TFileSystemFileSource) and
|
||||
frmMain.NotActiveFrame.FileSource.IsClass(TFileSystemFileSource) then
|
||||
|
|
@ -2300,8 +2299,7 @@ begin
|
|||
end;
|
||||
|
||||
finally
|
||||
if Assigned(theFilesToDelete) then
|
||||
FreeAndNil(theFilesToDelete);
|
||||
FreeAndNil(theFilesToDelete);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue