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:
@@ -12,6 +12,7 @@ All:
|
||||
All (GUI):
|
||||
|
||||
- Fixed potential infinite loop when adjusting wxScrolledWindow scrollbars.
|
||||
- Radio in menus do not send menu event for selections of already selected item.
|
||||
|
||||
wxMSW:
|
||||
|
||||
|
@@ -205,6 +205,9 @@ bool wxFrameBase::ProcessCommand(int id)
|
||||
if (!item->IsEnabled())
|
||||
return true;
|
||||
|
||||
if ((item->GetKind() == wxITEM_RADIO) && item->IsChecked() )
|
||||
return true;
|
||||
|
||||
if (item->IsCheckable())
|
||||
{
|
||||
item->Toggle();
|
||||
|
Reference in New Issue
Block a user