mirror of https://gitlab.com/basile.b/dexed.git
fix AV when deleting an entry
This commit is contained in:
parent
f6b2c02031
commit
84466ab7c5
|
@ -88,6 +88,8 @@ procedure TCEToolsEditorWidget.btnRemToolClick(Sender: TObject);
|
|||
begin
|
||||
if lstTools.ItemIndex = -1 then
|
||||
exit;
|
||||
propsEd.TIObject := nil;
|
||||
propsEd.ItemIndex := -1;
|
||||
CustomTools.tools.Delete(lstTools.ItemIndex);
|
||||
DataToGui;
|
||||
end;
|
||||
|
|
Loading…
Reference in New Issue