]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/toolbar.cpp
Make it possible for pywxrc to generate just the gettext _() strings
[wxWidgets.git] / src / univ / toolbar.cpp
index a284182dd50cdff8f90db35b7b5ac7b555fefd36..644763e88872a81968c3a205352b53111b879c77 100644 (file)
     #include "wx/utils.h"
     #include "wx/app.h"
     #include "wx/log.h"
+    #include "wx/frame.h"
 #endif
 
 #include "wx/univ/renderer.h"
 
-#include "wx/frame.h"
 #include "wx/image.h"
 
 // ----------------------------------------------------------------------------
@@ -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 );