mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: HTTP Browser plugin compatibility
This commit is contained in:
parent
822bb09f8f
commit
93f57286d3
1 changed files with 4 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ uses
|
|||
procedure ChooseFile(aFileView: TFileView; aFileSource: IFileSource;
|
||||
aFile: TFile);
|
||||
var
|
||||
Index, PathIndex: Integer;
|
||||
sCmd, sParams, sStartPath: String;
|
||||
Operation: TFileSourceExecuteOperation = nil;
|
||||
aFileCopy: TFile = nil;
|
||||
|
|
@ -134,7 +135,9 @@ begin
|
|||
with aFileView do
|
||||
begin
|
||||
// If path is URI
|
||||
if Pos('://', Operation.ResultString) > 0 then
|
||||
Index:= Pos('://', Operation.ResultString);
|
||||
PathIndex:= Pos(PathDelim, Operation.ResultString);
|
||||
if (Index > 0) and ((PathIndex > Index) or (PathIndex = 0)) then
|
||||
ChooseFileSource(aFileView, Operation.ResultString)
|
||||
else if (FileSource.IsClass(TFileSystemFileSource)) or
|
||||
(mbSetCurrentDir(ExcludeTrailingPathDelimiter(Operation.ResultString)) = False) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue