- If leaving compilers tab before closing global settings dialog, and coming back, extra buttons were created.
Clicking on the wrong button would crash the IDE.
public void DestroyChildren()
{
- // This is not required and will jam if the Stacker is destroyed
+ // This safe loop with 'left' will jam if the Stacker is destroyed
if(!destroyed && created)
{
bool left = true;
}
}
}
+ else
+ {
+ // If the stacker is already destroyed, just clear everything
+ Iterator<Window> it { controls };
+ while(it.pointer = null, it.Next())
+ {
+ Window w = it.data;
+ it.Remove();
+ w.Destroy(0);
+ delete w;
+ }
+ }
}
public void MakeControlVisible(Window control)