def METHOD_NAME(self, index):
    """Handle clicking of an item.
    Args:
        index: The QModelIndex of the clicked item.
    """
    if not index.isValid():
        return
    item = self._model().data(index, downloads.ModelRole.item)
    if item.done and item.successful:
        item.open_file()
        item.remove()