KitManager: Report all features on empty platform

The platform is empty when "all templates" is selected in the
NewDialog. In that case I expect all possible features to be
reported.

Change-Id: I2ad4ba6df217b39ffa44b7001875e46c04712bb5
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-27 15:23:29 +02:00
parent f09a87e5ba
commit 7c1b21f60f
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ public:
QModelIndex sourceIndex = sourceModel()->index(sourceRow, 0, sourceParent);
Core::IWizardFactory *wizard = factoryOfItem(qobject_cast<QStandardItemModel*>(sourceModel())->itemFromIndex(sourceIndex));
if (wizard)
return m_platform.isEmpty() || wizard->isAvailable(m_platform);
return wizard->isAvailable(m_platform);
return true;
}