mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Turtle: Fixed issue with focus on WndDestroy #682
git-svn-id: svn://ultimatepp.org/upp/trunk@6890 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
938c74a9da
commit
77da65c2a7
2 changed files with 3 additions and 10 deletions
|
|
@ -65,15 +65,7 @@ void GuiPlatformAfterMenuPopUp()
|
|||
}
|
||||
|
||||
String Ctrl::Name() const {
|
||||
GuiLock __;
|
||||
#ifdef CPU_64
|
||||
String s = String(typeid(*this).name()) + " : 0x" + FormatIntHex(this);
|
||||
#else
|
||||
String s = String(typeid(*this).name()) + " : " + Format("0x%x", (int) this);
|
||||
#endif
|
||||
if(IsChild())
|
||||
s << "(parent " << String(typeid(*parent).name()) << ")";
|
||||
return s;
|
||||
return Name0();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -274,8 +274,9 @@ void Ctrl::DestroyWnd()
|
|||
|
||||
void Ctrl::WndDestroy()
|
||||
{
|
||||
bool focus = HasFocusDeep();
|
||||
DestroyWnd();
|
||||
if(topctrl.GetCount())
|
||||
if(focus && topctrl.GetCount())
|
||||
topctrl.Top()->ActivateWnd();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue