Dive d/l selection UI: Only show checkbox on the first column

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-08 09:43:29 -08:00
parent 9d38ceb95d
commit cb6f04f16c

View file

@ -538,7 +538,8 @@ QVariant DiveImportedModel::data(const QModelIndex& index, int role) const
}
}
if (role == Qt::CheckStateRole) {
return checkStates[index.row() + firstIndex] ? Qt::Checked : Qt::Unchecked;
if (index.column() == 0)
return checkStates[index.row() + firstIndex] ? Qt::Checked : Qt::Unchecked;
}
return QVariant();
}