Do not send event for already selected menu radio item selection.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-05-10 19:10:52 +00:00
parent 4b9918c5ae
commit 26c36d7505
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ All:
All (GUI): All (GUI):
- Fixed potential infinite loop when adjusting wxScrolledWindow scrollbars. - Fixed potential infinite loop when adjusting wxScrolledWindow scrollbars.
- Radio in menus do not send menu event for selections of already selected item.
wxMSW: wxMSW:

View File

@@ -205,6 +205,9 @@ bool wxFrameBase::ProcessCommand(int id)
if (!item->IsEnabled()) if (!item->IsEnabled())
return true; return true;
if ((item->GetKind() == wxITEM_RADIO) && item->IsChecked() )
return true;
if (item->IsCheckable()) if (item->IsCheckable())
{ {
item->Toggle(); item->Toggle();