Commit a9454b3e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

VCS: Do not check uncheckable items on Select all...

... in the submit editor

Change-Id: I632195429390320836719cbdecf1aec22db08d2f
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 648a8e82
......@@ -131,8 +131,11 @@ void SubmitFileModel::setChecked(int row, bool check)
void SubmitFileModel::setAllChecked(bool check)
{
int rows = rowCount();
for (int row = 0; row < rows; ++row)
item(row)->setCheckState(check ? Qt::Checked : Qt::Unchecked);
for (int row = 0; row < rows; ++row) {
QStandardItem *i = item(row);
if (i->isCheckable())
i->setCheckState(check ? Qt::Checked : Qt::Unchecked);
}
}
QVariant SubmitFileModel::extraData(int row) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment