mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Make sure to actually remove the signal registration too
This commit is contained in:
parent
970aba9766
commit
c2a46e4b45
2 changed files with 10 additions and 0 deletions
|
|
@ -95,6 +95,15 @@ bool GuiInputCtrl::onAdd()
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
GuiCanvas::getCanvasSetActiveSignal().notify(this, &GuiInputCtrl::handleCanvasSetActive);
|
GuiCanvas::getCanvasSetActiveSignal().notify(this, &GuiInputCtrl::handleCanvasSetActive);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuiInputCtrl::onRemove()
|
||||||
|
{
|
||||||
|
GuiCanvas::getCanvasSetActiveSignal().remove(this, &GuiInputCtrl::handleCanvasSetActive);
|
||||||
|
|
||||||
|
Parent::onRemove();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GuiInputCtrl::onWake()
|
bool GuiInputCtrl::onWake()
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ public:
|
||||||
GuiInputCtrl();
|
GuiInputCtrl();
|
||||||
|
|
||||||
bool onAdd() override;
|
bool onAdd() override;
|
||||||
|
void onRemove() override;
|
||||||
|
|
||||||
// GuiControl.
|
// GuiControl.
|
||||||
bool onWake() override;
|
bool onWake() override;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue