def setValueAt(self, val, row, col):
        # NOTE: testing if .locked is ok here since its a manual operation
        if self._db.lock.locked():
            return
        messageEntry = self._db.getMessageByRow(row)
        if col == self._db.STATIC_MESSAGE_TABLE_COLUMN_COUNT-2:
            messageEntry._name = val
        elif col == 1-self._db.STATIC_MESSAGE_TABLE_COLUMN_COUNT:
            messageEntry._successRegex = val
        else:
            roleIndex = self._db.getRoleByMessageTableColumn(col)._index
            messageEntry.addRoleByIndex(roleIndex,val)
        self.fireTableCellUpdated(row,col)

    # Set checkboxes editable
dataset/ETHPy150Open SecurityInnovation/AuthMatrix/AuthMatrix.py/MessageTableModel.setValueAt/swapped operands of `-`