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):
|
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:
|
||||||
|
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user