Disconnect "hide" menu signal to fix menu destruction in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 00:36:55 +0000 (00:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2010 00:36:55 +0000 (00:36 +0000)
commit82302ad45a9d919460bdeeca69efedbc3f0836d7
treed6891e79ae28baebd65d846201dee09d8a8416bc
parent08e78a5412fb62c39d78f3cc13c3af1d97803eca
Disconnect "hide" menu signal to fix menu destruction in wxGTK.

The "hide" signal handler was triggered when destroying a sub-menu (even if it
was not shown at this time). Disconnect it to avoid asserts due to attempts to
generate an event for an already detached menu and to avoid the (bogus)
wxEVT_MENU_CLOSE event as well.

Closes #12668.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/menu.cpp