mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Unpacking file from zip with entering empty destination (fixes #826)
(cherry picked from commit 09762d955d)
This commit is contained in:
parent
df335ced59
commit
94cc42cabe
1 changed files with 8 additions and 1 deletions
|
|
@ -3446,6 +3446,7 @@ function TfrmMain.CopyFiles(SourceFileSource, TargetFileSource: IFileSource;
|
|||
bShowDialog: Boolean;
|
||||
QueueIdentifier: TOperationsManagerQueueIdentifier): Boolean;
|
||||
var
|
||||
BaseDir: String;
|
||||
sDestination: String;
|
||||
sDstMaskTemp: String;
|
||||
FileSource: IFileSource;
|
||||
|
|
@ -3538,9 +3539,15 @@ begin
|
|||
|
||||
sDestination := CopyDialog.edtDst.Text;
|
||||
|
||||
if SourceFileSource.IsClass(TArchiveFileSource) then
|
||||
BaseDir := ExtractFilePath(SourceFileSource.CurrentAddress)
|
||||
else begin
|
||||
BaseDir := SourceFiles.Path;
|
||||
end;
|
||||
|
||||
GetDestinationPathAndMask(SourceFiles, SourceFileSource,
|
||||
TargetFileSource, sDestination,
|
||||
SourceFiles.Path, TargetPath, sDstMaskTemp);
|
||||
BaseDir, TargetPath, sDstMaskTemp);
|
||||
|
||||
if (TargetFileSource = nil) or (Length(TargetPath) = 0) then
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue