Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment