mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: Don't show Pack Files dialog if no files selected.
This commit is contained in:
parent
60f351765a
commit
784c03731b
1 changed files with 10 additions and 9 deletions
|
|
@ -770,16 +770,17 @@ begin
|
|||
begin
|
||||
SelectedFiles := ActiveFrame.CloneSelectedFiles;
|
||||
try
|
||||
ShowPackDlg(ActiveFrame.FileSource,
|
||||
nil, // No specific target (create new)
|
||||
SelectedFiles,
|
||||
NotActiveFrame.CurrentPath,
|
||||
PathDelim { Copy to root of archive } {NotActiveFrame.FileSource.GetRootString}
|
||||
);
|
||||
|
||||
if SelectedFiles.Count > 0 then
|
||||
ShowPackDlg(ActiveFrame.FileSource,
|
||||
nil, // No specific target (create new)
|
||||
SelectedFiles,
|
||||
NotActiveFrame.CurrentPath,
|
||||
PathDelim { Copy to root of archive } {NotActiveFrame.FileSource.GetRootString}
|
||||
)
|
||||
else
|
||||
msgWarning(rsMsgNoFilesSelected);
|
||||
finally
|
||||
if Assigned(SelectedFiles) then
|
||||
FreeAndNil(SelectedFiles);
|
||||
FreeAndNil(SelectedFiles);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue