🚨 Drop the temp region node before refreshing the list

The region list refresh freed all tree nodes, leaving the pending
new-region pointer dangling while its save button stayed armed.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent 4f6e034b5c
commit aaaad354b2
+3
View File
@@ -699,6 +699,9 @@ var
regionInfo: PRegionInfo;
begin
vstRegions.BeginUpdate;
FTempRegionNode := nil;
FEditedRegionNode := nil;
btnSave.Enabled := False;
vstRegions.Clear;
regionCount := ABuffer.ReadByte;
for i := 0 to regionCount - 1 do