forked from qt-creator/qt-creator
		
	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:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user