Ticket #1416 (closed defect: fixed)
ShowModal after Show does not debug-assert
|Reported by:||hockkn||Owned by:|
On a wxDialog-derived window, if you call Show() and
then ShowModal(), MSW and GTK behave as if the first
Show() was not made. On Mac, the window immediately
closes when ShowModal() is called as if the window
were closed, because it checks if the window is already
shown, whereas GTK and MSW do not.
It seems that the call to ShowModal() should throw a
debug assertion if a call to Show was already made, so
that users in the future will not have to spend time
hunting this down.