diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-07 23:11:21 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-07 23:11:21 (GMT) |
| commit | c88079d084f2f3b7ec891da22f8c497cd2652853 (patch) | |
| tree | ba24b70fb653b24a23e51c18a1d8d876233f71a5 /src/interface/Component.cpp | |
| parent | bbfbb81086897d50b67bf1494ac150eb607add72 (diff) | |
| download | powder-c88079d084f2f3b7ec891da22f8c497cd2652853.zip powder-c88079d084f2f3b7ec891da22f8c497cd2652853.tar.gz | |
Element sampling HUD thingy (No very good with MVC)
Diffstat (limited to 'src/interface/Component.cpp')
| -rw-r--r-- | src/interface/Component.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/Component.cpp b/src/interface/Component.cpp index 5db7acc..b2769cc 100644 --- a/src/interface/Component.cpp +++ b/src/interface/Component.cpp @@ -148,4 +148,6 @@ void Component::OnMouseWheelInside(int localx, int localy, int d) Component::~Component() { + if(GetParentWindow()->IsFocused(this)) + GetParentWindow()->FocusComponent(NULL); } |
