def delete_selected_repo(self):
    current_repo_item = self.repos_tree_widget.currentItem()
    if current_repo_item:
        current_repo = current_repo_item.data(0, QtCore.Qt.UserRole)
        self.exclude_repo_list.remove(current_repo['value'][3])
        self.repos_tree_widget.takeTopLevelItem(self.repos_tree_widget.currentIndex().row())
        self.fill_repo_combo_box(self.exclude_repo_list)
    self.check_save_ability()
def delete_selected_repo(self):
    current_repo_item = self.repos_tree_widget.currentItem()
    if current_repo_item:
        current_repo = current_repo_item.data(0, QtCore.Qt.UserRole)
        self.exclude_repo_list.remove(current_repo['value'][3])
        self.repos_tree_widget.takeTopLevelItem(self.repos_tree_widget.currentIndex().row())
        self.fill_repo_combo_box(self.exclude_repo_list)
    self.check_save_ability()