Commit f9db69b8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure we always check the only possible option

 ... in the TargetSetupPage.

 Make sure that if there is only one thing we can check that it is checked.

Reviewed-by: dt
parent 9531e751
......@@ -149,6 +149,7 @@ void TargetSetupPage::setImportInfos(const QList<ImportInfo> &infos)
}
shouldCheck = shouldCheck && (m_preferMobile == i.version->supportsMobileTarget());
shouldCheck = shouldCheck || i.isExistingBuild; // always check imports
shouldCheck = shouldCheck || m_infos.count() == 1; // always check only option
versionItem->setCheckState(0, shouldCheck ? Qt::Checked : Qt::Unchecked);
// Column 1 (status):
......
Supports Markdown
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