X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a81258bee4e20d3fa9b3d2f6bf3bcd1200d1e5e0..605c9c8318875c590fce53cd2ce5d5aabcc92564:/src/gtk/menu.cpp diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 974d8ae066..d01b340ad2 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -7,9 +7,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifdef __GNUG__ #pragma implementation "menu.h" +#pragma implementation "menuitem.h" #endif #include "wx/menu.h" @@ -443,8 +443,10 @@ wxMenuItem *wxMenu::FindItem(int id) const node = node->Next(); } - wxLogDebug( "wxMenu::FindItem: item %d not found.", id); - + // Not finding anything here can be correct + // when search the entire menu system for + // an entry -> no error message. + return (wxMenuItem *) NULL; }