New Project Wizard: Fix displayname of "None" node on project selection

Was broken in 5969c01fa6.

Change-Id: I5e6e20ae8570e7c49cb87f429f6d65993fe4618e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2014-09-09 17:19:42 +02:00
parent f52c1db02f
commit 975186c7fc

View File

@@ -74,6 +74,7 @@ public:
BestNodeSelector(const QString &commonDirectory, const QStringList &files);
void inspect(AddNewTree *tree);
AddNewTree *bestChoice() const;
bool deploys();
QString deployingProjects() const;
private:
QString m_commonDirectory;
@@ -133,6 +134,11 @@ AddNewTree *BestNodeSelector::bestChoice() const
return m_bestChoice;
}
bool BestNodeSelector::deploys()
{
return m_deploys;
}
QString BestNodeSelector::deployingProjects() const
{
if (m_deploys)
@@ -146,9 +152,9 @@ QString BestNodeSelector::deployingProjects() const
static inline AddNewTree *createNoneNode(BestNodeSelector *selector)
{
QString displayName = QCoreApplication::translate("ProjectWizard", "<Implicitly Add>");
if (selector->bestChoice())
displayName = QCoreApplication::translate("ProjectWizard", "<None>");
QString displayName = QCoreApplication::translate("ProjectWizard", "<None>");
if (selector->deploys())
displayName = QCoreApplication::translate("ProjectWizard", "<Implicitly Add>");
return new AddNewTree(displayName);
}