mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Don't show directory change error on start
(cherry picked from commit ed026035ed)
This commit is contained in:
parent
49a823e14b
commit
eecd70c65d
1 changed files with 8 additions and 1 deletions
|
|
@ -2872,6 +2872,8 @@ end;
|
|||
|
||||
function TFileView.BeforeChangePath(NewFileSource: IFileSource;
|
||||
Reason: TChangePathReason; NewPath: String): Boolean;
|
||||
var
|
||||
AForm: TCustomForm;
|
||||
begin
|
||||
if NewPath <> '' then
|
||||
begin
|
||||
|
|
@ -2881,7 +2883,12 @@ begin
|
|||
|
||||
if Assigned(NewFileSource) and not NewFileSource.SetCurrentWorkingDirectory(NewPath) then
|
||||
begin
|
||||
msgError(Format(rsMsgChDirFailed, [NewPath]));
|
||||
AForm:= GetParentForm(Self);
|
||||
if Assigned(AForm) and AForm.Visible then
|
||||
begin
|
||||
msgError(Format(rsMsgChDirFailed, [NewPath]));
|
||||
end;
|
||||
DCDebug(rsMsgChDirFailed, [NewPath]);
|
||||
Exit(False);
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue