Browse Source

Close the popup when unpining the popup widget

Julien Finet 14 years ago
parent
commit
ed4f4b613f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Libs/Widgets/ctkPopupWidget.cpp

+ 4 - 0
Libs/Widgets/ctkPopupWidget.cpp

@@ -828,6 +828,10 @@ void ctkPopupWidget::pinPopup(bool pin)
     {
     this->showPopup();
     }
+  else
+    {
+    this->hidePopup();
+    }
 }
 
 // --------------------------------------------------------------------------