don't let MacIsReallyShown climb over toplevel windows, otherwise tlws with invisible parents are not showing their controls either
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -846,7 +846,7 @@ void wxWindowMac::MacSuperEnabled( bool enabled )
|
|||||||
|
|
||||||
bool wxWindowMac::MacIsReallyShown() const
|
bool wxWindowMac::MacIsReallyShown() const
|
||||||
{
|
{
|
||||||
if ( m_isShown && (m_parent != NULL) ) {
|
if ( m_isShown && (m_parent != NULL && !IsTopLevel() ) ) {
|
||||||
return m_parent->MacIsReallyShown();
|
return m_parent->MacIsReallyShown();
|
||||||
}
|
}
|
||||||
return m_isShown;
|
return m_isShown;
|
||||||
|
@@ -846,7 +846,7 @@ void wxWindowMac::MacSuperEnabled( bool enabled )
|
|||||||
|
|
||||||
bool wxWindowMac::MacIsReallyShown() const
|
bool wxWindowMac::MacIsReallyShown() const
|
||||||
{
|
{
|
||||||
if ( m_isShown && (m_parent != NULL) ) {
|
if ( m_isShown && (m_parent != NULL && !IsTopLevel() ) ) {
|
||||||
return m_parent->MacIsReallyShown();
|
return m_parent->MacIsReallyShown();
|
||||||
}
|
}
|
||||||
return m_isShown;
|
return m_isShown;
|
||||||
|
Reference in New Issue
Block a user