X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f536f31df31cd09455e6f2fb8d0752fa428a3f8..a9efc294a979fb4ae801f7dc37af35677301212d:/src/gtk/menu.cpp diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index b0b2d13654..6f385bf71f 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -186,7 +186,7 @@ static void wxMenubarSetInvokingWindow( wxMenu *menu, wxWindow *win ) top_frame = top_frame->GetParent(); // support for native hot keys - if (menu->m_accel && g_slist_find(menu->m_accel->acceleratables, top_frame->m_widget)) + if (menu->m_accel && !g_slist_find(menu->m_accel->acceleratables, top_frame->m_widget)) gtk_window_add_accel_group(GTK_WINDOW(top_frame->m_widget), menu->m_accel); wxMenuItemList::compatibility_iterator node = menu->GetMenuItems().GetFirst();