]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
call Show(false) from ~wxDialog to call EndModal if the dialog is still modal consist...
[wxWidgets.git] / src / gtk / menu.cpp
index b0b2d136545a85d84537058c0b2ce481664704a8..6f385bf71fae5cc21d7db13f62b79fd56c49880c 100644 (file)
@@ -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();