diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 0deadd900a..d8ef9f1f46 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -278,12 +278,12 @@ void wxDialog::GetPosition(int *x, int *y) const bool wxDialog::IsShown() const { - return wxModalDialogs.Find(this); + return m_isShown; } bool wxDialog::IsModal() const { - return wxModalDialogs. + return wxModalDialogs.Find((wxDialog *)this) != 0; // const_cast } bool wxDialog::Show(bool show)