summaryrefslogtreecommitdiff
path: root/src/interface/Panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/Panel.cpp')
-rw-r--r--src/interface/Panel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/Panel.cpp b/src/interface/Panel.cpp
index d673037..b78a2cc 100644
--- a/src/interface/Panel.cpp
+++ b/src/interface/Panel.cpp
@@ -82,6 +82,8 @@ void Panel::RemoveChild(Component* c)
{
//remove child from parent. Does not free memory
children.erase(children.begin() + i);
+ if (this->GetParentWindow()->IsFocused(c))
+ this->GetParentWindow()->FocusComponent(NULL);
break;
}
}