'Update the local/remote branch names when a branch is selected'

def update_local_branches(self):

    branches = self.model.local_branches
    widget = self.local_branches
    selection = qtutils.selected_item(widget, branches)
    if (not selection):
        return
    self.set_local_branch(selection)
    self.set_remote_branch(selection)
