allow wxDialog::ShowModal() after Show() (see #1416, #4658, #4664)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-22 14:40:25 +00:00
parent 809ca837f6
commit dc28b8564e
4 changed files with 14 additions and 6 deletions

View File

@@ -283,8 +283,7 @@ void wxDialog::Raise()
// show dialog modally
int wxDialog::ShowModal()
{
wxASSERT_MSG(!IsShown(),
_T("ShowModal() can't be called for an already shown dialog"));
wxASSERT_MSG( !IsModal(), _T("ShowModal() can't be called twice") );
m_endModalCalled = false;