]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/toolbar.cpp
revert removal of gtk1 code from common file
[wxWidgets.git] / src / univ / toolbar.cpp
index 59891ba4ae2f35fa2220fb5ca916a4121b3f2411..644763e88872a81968c3a205352b53111b879c77 100644 (file)
@@ -653,6 +653,11 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
 
         // Write by Danny Raynor to change state again.
         // Check button still pressed or not
+        if ( tool->CanBeToggled() && tool->IsToggled() )
+        {
+            tool->Toggle(false);
+        }
+
         if( tool->IsInverted() )
         {
             PerformAction( wxACTION_TOOLBAR_RELEASE, numArg );