code: def hidePopup(self):
          
          if self._treePopupWidget and self.showTreePopup():
              self._treePopupWidget.close()
          
          super(XOrbRecordBox, self).hidePopup()
docs: Overloads the hide popup method to handle when the user hides
          the popup widget.