def table_selection_changed(self, selected=None, deselected=None):
        """allow delete selected only when there is a row selected"""
        columns = self.model.columnCount()
        rows = len(self.gui.file_table_view.selectedIndexes())/columns
        any = (rows > 0)
        self.gui.action_Delete_Selected.setEnabled(any)
dataset/ETHPy150Open shotgunsoftware/pyqt-uploader/uploader.py/Uploader.table_selection_changed/original