summaryrefslogtreecommitdiff
path: root/src/interface/Component.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-09 11:40:30 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-09 11:40:30 (GMT)
commitb2907798f28b4acce5b024f025e7b96079f53338 (patch)
treeb331b195c491344afc48d61da4db730fc2ae817a /src/interface/Component.cpp
parentda9cec2c3bbf0ff46642ffbbf918d3afa513069a (diff)
downloadpowder-b2907798f28b4acce5b024f025e7b96079f53338.zip
powder-b2907798f28b4acce5b024f025e7b96079f53338.tar.gz
Fix issue where unborn children were slaughtered when removing a component from an event
Diffstat (limited to 'src/interface/Component.cpp')
-rw-r--r--src/interface/Component.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interface/Component.cpp b/src/interface/Component.cpp
index b2769cc..0efc2b1 100644
--- a/src/interface/Component.cpp
+++ b/src/interface/Component.cpp
@@ -148,6 +148,5 @@ void Component::OnMouseWheelInside(int localx, int localy, int d)
Component::~Component()
{
- if(GetParentWindow()->IsFocused(this))
- GetParentWindow()->FocusComponent(NULL);
+
}