'Update browse history'

def update_history(self, directory):

    directory = osp.abspath(to_text_string(directory))
    if (directory in self.history):
        self.histindex = self.history.index(directory)
