mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Viewer - Prevent view directory in the non-local file system
This commit is contained in:
parent
e56beb368f
commit
072063b8a8
1 changed files with 18 additions and 0 deletions
|
|
@ -2026,6 +2026,24 @@ begin
|
|||
// Default to using the file source directly.
|
||||
aFileSource := ActiveFrame.FileSource;
|
||||
|
||||
if not (fspDirectAccess in aFileSource.Properties) and
|
||||
not (fspLinksToLocalFiles in aFileSource.Properties) then
|
||||
begin
|
||||
for I := SelectedFiles.Count - 1 downto 0 do
|
||||
begin
|
||||
with SelectedFiles[I] do
|
||||
begin
|
||||
if IsDirectory or IsLinkToDirectory then
|
||||
SelectedFiles.Delete(I);
|
||||
end;
|
||||
end;
|
||||
if (SelectedFiles.Count = 0) then
|
||||
begin
|
||||
msgWarning(rsMsgNoFilesSelected);
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
if PrepareData(aFileSource, SelectedFiles, @OnCopyOutStateChanged) <> pdrSynchronous then
|
||||
Exit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue