diff options
author | Daniel Teske <daniel.teske@nokia.com> | 2011-10-28 10:15:04 +0000 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-02-03 09:36:46 +0100 |
commit | e3d14f7c3982f8007fd885a94ad78b47fc9b0acf (patch) | |
tree | 3081c0e1cd6b43b27d8a8e3cc8c20fde30b55d84 /src/plugins/qt4projectmanager/qt4nodes.cpp | |
parent | a309c26f1bb76fc1a55faf109d18289e96a2fffa (diff) | |
download | qt-creator-e3d14f7c3982f8007fd885a94ad78b47fc9b0acf.tar.gz |
Make Open Project wizard skippable
Task-Nr: QTCREATORBUG-6063
Change-Id: Ieace3e9e68b4e0342c35ac7c279f4b0b61076419
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/qt4projectmanager/qt4nodes.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qt4nodes.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index efb15b6e85..677f6d5b63 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -774,7 +774,10 @@ bool Qt4PriFileNode::deploysFolder(const QString &folder) const QList<ProjectExplorer::RunConfiguration *> Qt4PriFileNode::runConfigurationsFor(Node *node) { - return m_project->activeTarget()->runConfigurationsForNode(node); + Qt4BaseTarget *target = m_project->activeTarget(); + if (target) + return target->runConfigurationsForNode(node); + return QList<ProjectExplorer::RunConfiguration *>(); } QList<Qt4PriFileNode *> Qt4PriFileNode::subProjectNodesExact() const @@ -854,7 +857,9 @@ QList<ProjectNode::ProjectAction> Qt4PriFileNode::supportedActions(Node *node) c if (fileNode && fileNode->fileType() != ProjectExplorer::ProjectFileType) actions << Rename; - if (!m_project->activeTarget()->runConfigurationsForNode(node).isEmpty()) + + Qt4BaseTarget *target = m_project->activeTarget(); + if (target && !target->runConfigurationsForNode(node).isEmpty()) actions << HasSubProjectRunConfigurations; return actions; @@ -2132,7 +2137,8 @@ TargetInformation Qt4ProFileNode::targetInformation(QtSupport::ProFileReader *re // Hmm can we find out whether it's debug or release in a saner way? // Theoretically it's in CONFIG QString qmakeBuildConfig = QLatin1String("release"); - if (m_project->activeTarget()->activeQt4BuildConfiguration()->qmakeBuildConfiguration() & QtSupport::BaseQtVersion::DebugBuild) + Qt4BaseTarget *target = m_project->activeTarget(); + if (!target || target->activeQt4BuildConfiguration()->qmakeBuildConfiguration() & QtSupport::BaseQtVersion::DebugBuild) qmakeBuildConfig = QLatin1String("debug"); wd += QLatin1Char('/') + qmakeBuildConfig; } |