Cary Sandvig 25 years ago
parent
commit
0793b1b516
2 changed files with 1 additions and 1 deletions
  1. 0 1
      panda/src/gui/guiButton.I
  2. 1 0
      panda/src/gui/guiButton.cxx

+ 0 - 1
panda/src/gui/guiButton.I

@@ -52,7 +52,6 @@ INLINE void GuiButton::up(void) {
     gui_cat->warning() << "got up from invalid state (" << (int)_state << "),"
 		       << " button '" << this->get_name() << "'" << endl;
   }
-  this->reset_behavior();
 }
 
 INLINE void GuiButton::down(void) {

+ 1 - 0
panda/src/gui/guiButton.cxx

@@ -466,6 +466,7 @@ void GuiButton::stop_behavior(void) {
 }
 
 void GuiButton::reset_behavior(void) {
+  gui_cat->debug() << this->get_name() << "::reset_behavior()" << endl;
   GuiBehavior::reset_behavior();
   if (_mgr == (GuiManager*)0L)
     return;