Simplfy code in ProjectLoadWizard

Change-Id: Id77ff7681c31ccca5778bbe1eed5a341523c03c1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Daniel Teske
2011-10-25 18:24:15 +00:00
parent 6820f22bbd
commit 0af52c6b6a
4 changed files with 10 additions and 44 deletions

View File

@@ -375,8 +375,10 @@ bool Qt4Project::fromMap(const QVariantMap &map)
}
// Add buildconfigurations so we can parse the pro-files.
if (targets().isEmpty())
addDefaultBuild();
if (targets().isEmpty()) {
ProjectLoadWizard wizard(this);
wizard.exec();
}
if (targets().isEmpty()) {
qWarning() << "Unable to create targets!";
@@ -931,16 +933,6 @@ QList<ProjectExplorer::Project*> Qt4Project::dependsOn()
return QList<Project *>();
}
void Qt4Project::addDefaultBuild()
{
// TODO this could probably refactored
// That is the ProjectLoadWizard divided into useful bits
// and this code then called here, instead of that strange forwarding
// to a wizard, which doesn't even show up
ProjectLoadWizard wizard(this);
wizard.execDialog();
}
void Qt4Project::proFileParseError(const QString &errorMessage)
{
Core::ICore::instance()->messageManager()->printToOutputPanePopup(errorMessage);