IsModal now has the newer meaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -112,7 +112,8 @@ void wxDialog::OnCharHook(wxKeyEvent& event)
|
|||||||
|
|
||||||
bool wxDialog::IsModal() const
|
bool wxDialog::IsModal() const
|
||||||
{
|
{
|
||||||
return m_isModalStyle;
|
return wxModalDialogs.Find((wxDialog *)this) != NULL; // const_cast
|
||||||
|
// return m_isModalStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -135,7 +136,7 @@ bool wxDialog::Show(bool show)
|
|||||||
InitDialog();
|
InitDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( IsModal() )
|
if ( m_isModalStyle )
|
||||||
{
|
{
|
||||||
if ( show )
|
if ( show )
|
||||||
{
|
{
|
||||||
@@ -189,7 +190,7 @@ void wxDialog::DoShowModal()
|
|||||||
// Replacement for Show(TRUE) for modal dialogs - returns return code
|
// Replacement for Show(TRUE) for modal dialogs - returns return code
|
||||||
int wxDialog::ShowModal()
|
int wxDialog::ShowModal()
|
||||||
{
|
{
|
||||||
if ( !IsModal() )
|
if ( !m_isModalStyle )
|
||||||
{
|
{
|
||||||
SetModal(TRUE);
|
SetModal(TRUE);
|
||||||
}
|
}
|
||||||
@@ -204,6 +205,7 @@ void wxDialog::EndModal(int retCode)
|
|||||||
{
|
{
|
||||||
SetReturnCode(retCode);
|
SetReturnCode(retCode);
|
||||||
Show(FALSE);
|
Show(FALSE);
|
||||||
|
SetModal(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Standard buttons
|
// Standard buttons
|
||||||
|
Reference in New Issue
Block a user