X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22cf5fec15463fae0fea4db2c95119018c60d3be..23aa4f09d26bd1eb5df7f7170276744a293cbe19:/src/msw/dialog.cpp 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)