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
|
begin
|
||||||
if lstTools.ItemIndex = -1 then
|
if lstTools.ItemIndex = -1 then
|
||||||
exit;
|
exit;
|
||||||
|
propsEd.TIObject := nil;
|
||||||
|
propsEd.ItemIndex := -1;
|
||||||
CustomTools.tools.Delete(lstTools.ItemIndex);
|
CustomTools.tools.Delete(lstTools.ItemIndex);
|
||||||
DataToGui;
|
DataToGui;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue