Ticket #15880 (closed defect: fixed)
Prevent the utility `helpview` from being closed by its subdialog.
|Reported by:||jbbbms||Owned by:|
|Keywords:||wxHtmlHelpFrame, SetShouldPreventAppExit, wxHtmlHelpFrame||Cc:|
If we open any dialog from a wxHtmlHelpFrame, for example, click the rightmost button on the toolbar to display the font selection dialog, then, no matter how we dismiss the dialog, the HTML help frame (the wxHtmlHelpFrame object) will go with it, and the application ends there unexpectedly.
The attached file fixed the buggy behavior.
By the way, why wxHtmlHelpFrame's m_shouldPreventAppExit is not default to true? Because the same problem emerges (in both wxGTK and wxMSW) when trying to use wxHtmlHelpController to create a standalone viewer of wxWidgets HTML Help (.htb/.zip) file.
Thanks. Have a nice day.