diff options
author | Daniel Teske <daniel.teske@nokia.com> | 2012-07-12 13:30:03 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@nokia.com> | 2012-07-16 12:44:01 +0200 |
commit | 113bd5ce7e7e220d692b6d9fa559ec608de5ca4b (patch) | |
tree | cbd3d0b32d516d4e585ffce2626d3b8253cb440d /src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp | |
parent | 1a5edbaff9e42739b7a14959aca33aa16608479a (diff) | |
download | qt-creator-113bd5ce7e7e220d692b6d9fa559ec608de5ca4b.tar.gz |
UnconfiguredProjectPanel: Fix crash if there are no profiles
That can happen, since the default profile is now manual and can be
deleted.
Change-Id: Id9274351e800ba88d7050ca7cd036cfc227a899a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp b/src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp index b9490d8a45..d9a46b7b8a 100644 --- a/src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp +++ b/src/plugins/qt4projectmanager/unconfiguredprojectpanel.cpp @@ -148,8 +148,15 @@ void TargetSetupPageWrapper::updateNoteText() { ProjectExplorer::Profile *p = ProjectExplorer::ProfileManager::instance()->defaultProfile(); + QString text; - if (p->isValid()) + if (!p) + text = tr("<p>The project <b>%1</b> is not yet configured.</p>" + "<p>Qt Creator can not parse the project, because no profile " + "has been setup. You can setup profiles " + "in the <b><a href=\"edit\">settings.</a></b></p>") + .arg(m_project->displayName()); + else if (p->isValid()) text = tr("<p>The project <b>%1</b> is not yet configured.</p>" "<p>Qt Creator uses the profile: <b>%2</b> " "to parse the project. You can edit " |