* Maintain m_isShown for modal dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23360
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxDialog::Show(bool show)
{
bool wxDialog::Show(bool show)
{
+ if(m_isShown == show)
+ return false;
if(show)
InitDialog();
if(IsModal())
{
if(show)
InitDialog();
if(IsModal())
{
if(show)
{
wxAutoNSAutoreleasePool pool;
if(show)
{
wxAutoNSAutoreleasePool pool;
wxModalDialogs.DeleteObject(this);
}
}
wxModalDialogs.DeleteObject(this);
}
}
+ else
+ return wxTopLevelWindow::Show(show);