Ticket #4658 (closed defect)
wxDialog::ShowModal fails if dialog is already open
|Reported by:||hwiesmann||Owned by:||csomor|
The following code snippet does not work (taken from wxProgressDialog):
Unfortunately, this code fails but it is the recommended way to switch a dialog to a modal dialog because wxDialog::SetModal(bool) is marked as depreciated.
The reason is that inside wxDialog::ShowModal() wxDialog::Show(true) is called and that this one returns false if the dialog is already shown.
in wxDialog::ShowModal() should fix the problem.