summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/deploymentinfo.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2011-07-08 13:51:32 +0200
committerChristian Kandeler <christian.kandeler@nokia.com>2011-07-11 11:50:17 +0200
commiteca6ac029ab18699c2b12df5ef651d05fc90e589 (patch)
tree83fb7eae86141d290a9ed5e1f08269b2ee1e4ade /src/plugins/remotelinux/deploymentinfo.cpp
parentfeb072b235bab262d76f3015b7bea68434b03d60 (diff)
downloadqt-creator-eca6ac029ab18699c2b12df5ef651d05fc90e589.tar.gz
RemoteLinux: Don't build list of deployables without valid Qt version.
Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=251230 Change-Id: I19f5894b52ea11590304365adae49ed148e4bd48 Reviewed-on: http://codereview.qt.nokia.com/1374 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/deploymentinfo.cpp')
-rw-r--r--src/plugins/remotelinux/deploymentinfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/deploymentinfo.cpp b/src/plugins/remotelinux/deploymentinfo.cpp
index 90bd032d49..23b23f5b6e 100644
--- a/src/plugins/remotelinux/deploymentinfo.cpp
+++ b/src/plugins/remotelinux/deploymentinfo.cpp
@@ -71,6 +71,13 @@ void DeploymentInfo::createModels()
{
if (m_target->project()->activeTarget() != m_target)
return;
+ if (!m_target->activeBuildConfiguration() || !m_target->activeBuildConfiguration()->qtVersion()
+ || !m_target->activeBuildConfiguration()->qtVersion()->isValid()) {
+ beginResetModel();
+ m_listModels.clear();
+ endResetModel();
+ return;
+ }
const Qt4ProFileNode *const rootNode
= m_target->qt4Project()->rootProjectNode();
if (!rootNode || rootNode->parseInProgress()) // Can be null right after project creation by wizard.