diff options
Diffstat (limited to 'src/plugins/remotelinux/deploymentinfo.cpp')
-rw-r--r-- | src/plugins/remotelinux/deploymentinfo.cpp | 7 |
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. |