Wizards: Do not list json wizards that go with plugins that are not loaded

This needs the patch that splits features and plugins in the json wizard
and makes sure that the requiredFeatures are ignored by the "All templates"
selector in the NewDialog while the "enabled" statement of the JSON
wizard still takes effect.

Change-Id: I76fd5d72a73af064cf5047a6a43aec6598f675bf
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-05-28 16:28:27 +02:00
parent bcc3cc992b
commit c53099648a

View File

@@ -255,6 +255,9 @@ QString IWizardFactory::runPath(const QString &defaultPath)
bool IWizardFactory::isAvailable(const QString &platformName) const bool IWizardFactory::isAvailable(const QString &platformName) const
{ {
if (platformName.isEmpty())
return true;
return availableFeatures(platformName).contains(requiredFeatures()); return availableFeatures(platformName).contains(requiredFeatures());
} }