'Select a remote by index'

def select_remote(self, idx):

    item = self.remotes.item(idx)
    if item:
        item.setSelected(True)
        self.remotes.setCurrentItem(item)
        self.set_remote_name(item.text())
        result = True
    else:
        result = False
    return result
