X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc4211aa0c9f15cff97e3d69bfe8aa8eb4ae4633..f357c0d42c17bf5be30e65e68cd99c474678da71:/src/common/cshelp.cpp diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index 4d173898bc..b5091e8369 100644 --- a/src/common/cshelp.cpp +++ b/src/common/cshelp.cpp @@ -56,6 +56,8 @@ public: //// Data wxContextHelp* m_contextHelp; + + DECLARE_NO_COPY_CLASS(wxContextHelpEvtHandler) }; // ============================================================================ @@ -336,11 +338,13 @@ wxString wxSimpleHelpProvider::GetHelp(const wxWindowBase *window) void wxSimpleHelpProvider::AddHelp(wxWindowBase *window, const wxString& text) { + m_hashWindows.Delete((long)window); m_hashWindows.Put((long)window, text); } void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text) { + m_hashIds.Delete((long)id); m_hashIds.Put(id, text); }