mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Crash when no shortcut file selected.
This commit is contained in:
parent
2c67d6331e
commit
cac0c5db65
1 changed files with 8 additions and 4 deletions
|
|
@ -295,8 +295,11 @@ end;
|
|||
|
||||
procedure TfrmOptionsHotkeys.lbSCFilesListSelectionChange(Sender: TObject; User: boolean);
|
||||
begin
|
||||
HotMan.Load(gpCfgDir + lbSCFilesList.Items[lbSCFilesList.ItemIndex]);
|
||||
FillCommandsPage;
|
||||
if lbSCFilesList.ItemIndex >= 0 then
|
||||
begin
|
||||
HotMan.Load(gpCfgDir + lbSCFilesList.Items[lbSCFilesList.ItemIndex]);
|
||||
FillCommandsPage;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmOptionsHotkeys.lbxCategoriesSelectionChange(Sender: TObject; User: boolean);
|
||||
|
|
@ -697,8 +700,9 @@ function TfrmOptionsHotkeys.Save: TOptionsEditorSaveFlags;
|
|||
begin
|
||||
Result := [];
|
||||
|
||||
{save hot keys file}
|
||||
gNameSCFile := lbSCFilesList.Items[lbSCFilesList.ItemIndex];
|
||||
// Save hotkeys file name.
|
||||
if lbSCFilesList.ItemIndex >= 0 then
|
||||
gNameSCFile := lbSCFilesList.Items[lbSCFilesList.ItemIndex];
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue