FIX: Enable Add hotkey button when there are no hotkeys.

This commit is contained in:
cobines 2012-04-03 09:53:01 +00:00
commit 59f4134e1e

View file

@ -265,6 +265,7 @@ begin
begin
sCommand := stgCommands.Cells[stgCmdCommandIndex, aRow];
FillHotkeyList(sCommand);
btnAddHotKey.Enabled := True;
end;
end;
@ -283,7 +284,6 @@ var
aEnabled: Boolean;
begin
aEnabled := aRow >= stgHotkeys.FixedRows;
btnAddHotKey.Enabled := aEnabled;
btnDeleteHotKey.Enabled := aEnabled;
btnEditHotkey.Enabled := aEnabled;
end;