]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
use (new) safer GetTraitsIfExists() in wxMutexGuiEnter/Leave() to avoid crashing...
[wxWidgets.git] / src / msw / dialog.cpp
index b0703f2291abe4ba1e3c537d633ce65a596f45c1..1b66274cc16b0364215816807f21935a469ee5a9 100644 (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;