Make wxWindow::TransferData{To,From}Window actually transfer to self
This commit is contained in:
@@ -2033,17 +2033,18 @@ public:
|
|||||||
// grandchildren, calling OnRecurse() for them.
|
// grandchildren, calling OnRecurse() for them.
|
||||||
bool DoForSelfAndChildren()
|
bool DoForSelfAndChildren()
|
||||||
{
|
{
|
||||||
|
wxValidator* const validator = m_win->GetValidator();
|
||||||
|
if ( validator && !OnDo(validator) )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
wxWindowList& children = m_win->GetChildren();
|
wxWindowList& children = m_win->GetChildren();
|
||||||
for ( wxWindowList::iterator i = children.begin();
|
for ( wxWindowList::iterator i = children.begin();
|
||||||
i != children.end();
|
i != children.end();
|
||||||
++i )
|
++i )
|
||||||
{
|
{
|
||||||
wxWindow* const child = static_cast<wxWindow*>(*i);
|
wxWindow* const child = static_cast<wxWindow*>(*i);
|
||||||
wxValidator* const validator = child->GetValidator();
|
|
||||||
if ( validator && !OnDo(validator) )
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Notice that validation should never recurse into top level
|
// Notice that validation should never recurse into top level
|
||||||
// children, e.g. some other dialog which might happen to be
|
// children, e.g. some other dialog which might happen to be
|
||||||
|
Reference in New Issue
Block a user