Ignore menu events while modal dialogs are shown in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2012 00:15:03 +0000 (00:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2012 00:15:03 +0000 (00:15 +0000)
commit6bc9f42c3dc291131f73f15b8b01ffbad9966556
tree98d24ff5a858e563c7d6153b159f613156744b59
parent288de46cb2933c78e0ebd7ed0ecb7f12ad3e48b4
Ignore menu events while modal dialogs are shown in wxGTK.

Normally menus are disabled in this case but not when running under Ubuntu
Unity, so add an explicit test for this to avoid breaking the program expected
flow of control by allowing the user to show the same modal dialog twice, for
example.

This is not ideal, it would be better to visually disable the menu while the
modal dialogs are shown but is better than nothing.

Closes #14823.

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