FIX: Bug [0002112] Using Enter to save Directory Hotlist crashes DC

This commit is contained in:
Alexander Koblov 2019-03-25 19:43:13 +00:00
commit a031c4a7fc

View file

@ -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 }