'Called only when the text actually changes'

def on_edited(self, item, column, prior):

    key = str(item.data(0, Qt.UserRole).toString())
    text = unicode(item.text(column))
    self.parent.wallet.set_label(key, text)
    self.parent.history_list.update_labels()
    self.parent.update_completions()
