]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not send event for already selected menu radio item selection.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 10 May 2005 19:10:52 +0000 (19:10 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 10 May 2005 19:10:52 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/common/framecmn.cpp

index 8b1ec9da378e2a879879d0c6539d2cb0275f528a..5cc5640d670370983e2805126aecbb1505d4fd1d 100644 (file)
@@ -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:
 
index 6127486170f526268ad04af8b959f0d7db163dd7..ae37a7fbd87e286eb8229e579461146c443053ae 100644 (file)
@@ -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();