code: def add_current_text(self):
          
          text = self.currentText()
          if osp.isdir(text) and text:
              if text[-1] == os.sep:
                  text = text[:-1]
          self.add_text(text)
docs: Add current text to combo box history (convenient method).
          If path ends in os separator ("\" windows, "/" unix) remove it.