X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07b8d7ecc39cfc6cce17156b91c6de1cfb56ce5b..2e7b0a1617dbdada26531371627a1cd8a72e9149:/src/html/helpctrl.cpp diff --git a/src/html/helpctrl.cpp b/src/html/helpctrl.cpp index 8067c8335a..dbbf32c474 100644 --- a/src/html/helpctrl.cpp +++ b/src/html/helpctrl.cpp @@ -20,7 +20,7 @@ #pragma hdrstop #endif -#if wxUSE_HTML && wxUSE_STREAMS +#if wxUSE_WXHTML_HELP #ifndef WX_PRECOMP #include "wx/app.h" @@ -96,6 +96,8 @@ bool wxHtmlHelpController::AddBook(const wxString& book, bool show_wait_msg) if (show_wait_msg) delete busy; #endif + if (m_helpFrame) + m_helpFrame->RefreshLists(); return retval; } @@ -195,7 +197,7 @@ bool wxHtmlHelpController::DisplaySection(int sectionNo) bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& WXUNUSED(pos)) { -#if wxUSE_HELP +#if wxUSE_TIPWINDOW static wxTipWindow* s_tipWindow = NULL; if (s_tipWindow) @@ -213,7 +215,8 @@ bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& return TRUE; } -#endif +#endif // wxUSE_TIPWINDOW + return FALSE; } @@ -248,4 +251,5 @@ bool wxHtmlHelpController::Quit() return TRUE; } -#endif +#endif // wxUSE_WXHTML_HELP +