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.
Change History (8)
Changed 3 months ago by jbbbms
comment:3 Changed 3 months ago by VZ
- Resolution set to fixed
- Status changed from confirmed to closed