From f9db69b8ec0df6a27b4686b22eb91fce7f8bb2fc Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Thu, 1 Apr 2010 13:06:10 +0200
Subject: [PATCH] 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
---
 src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp b/src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
index 48bd136069d..7e064ae825c 100644
--- a/src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
+++ b/src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
@@ -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):
-- 
GitLab