mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [0002112] Using Enter to save Directory Hotlist crashes DC
This commit is contained in:
parent
3ec5ad45f0
commit
a031c4a7fc
1 changed files with 6 additions and 3 deletions
|
|
@ -1605,9 +1605,12 @@ begin
|
|||
btnRelativeTarget.Visible := lbleditHotDirTarget.Visible;
|
||||
cbSortHotDirTarget.Visible := lbleditHotDirTarget.Visible;
|
||||
|
||||
if TForm(Self.Parent.Parent.Parent).ActiveControl.Name = 'tvTreeView' then
|
||||
if lbleditHotDirName.CanFocus then
|
||||
TForm(Self.Parent.Parent.Parent).ActiveControl := lbleditHotDirName;
|
||||
if Assigned(TForm(Self.Parent.Parent.Parent).ActiveControl) then
|
||||
begin
|
||||
if TForm(Self.Parent.Parent.Parent).ActiveControl.Name = 'tvTreeView' then
|
||||
if lbleditHotDirName.CanFocus then
|
||||
TForm(Self.Parent.Parent.Parent).ActiveControl := lbleditHotDirName;
|
||||
end;
|
||||
end;
|
||||
|
||||
{ TfrmOptionsDirectoryHotlist.RefreshTreeView }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue