CodeWindow: Added skip event

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1794 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson 2009-01-05 08:19:44 +00:00
parent a30d40692b
commit 65590711e9
1 changed files with 4 additions and 0 deletions

View File

@ -967,6 +967,8 @@ void CCodeWindow::DoTip(wxString text)
// See the comment under BEGIN_EVENT_TABLE for an explanation of why we use both these events.
void CCodeWindow::OnStatusBar(wxMenuEvent& event)
{
event.Skip(); // This doesn't hurt right?
/* We assume the debug build user don't need to see this all the time. And these tooltips
may not be entirely stable. So we leave them out of debug builds. I could for example
get it to crash at wxWindowBase::DoHitTest(), that may be fixed in wxWidgets 2.9.0. */
@ -976,6 +978,8 @@ void CCodeWindow::OnStatusBar(wxMenuEvent& event)
}
void CCodeWindow::OnStatusBar_(wxUpdateUIEvent& event)
{
event.Skip();
#if !defined(_DEBUG) || defined(DEBUGFAST)
// The IDM_ADDRBOX id seems to come with this outside the toolbar
if(event.GetId() != IDM_ADDRBOX) DoTip(wxEmptyString);