Commit 11f9089d authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[ADD] ease showing modules with no input connector

parent c502179c
......@@ -365,6 +365,11 @@ void WQtDatasetBrowser::selectTreeItem()
switch ( m_treeWidget->selectedItems().at( 0 )->type() )
{
case SUBJECT:
case MODULEHEADER:
// Here we just take a prototype module with no output connectors
// to get the modules with no input connector.
module = WModuleFactory::getModuleFactory()->getPrototypeByName( "HUD" );
createCompatibleButtons( module );
break;
case DATASET:
module = ( static_cast< WQtDatasetTreeItem* >( m_treeWidget->selectedItems().at( 0 ) ) )->getModule();
......@@ -372,8 +377,6 @@ void WQtDatasetBrowser::selectTreeItem()
infoProps = module->getInformationProperties();
createCompatibleButtons( module );
break;
case MODULEHEADER:
break;
case MODULE:
module = ( static_cast< WQtModuleTreeItem* >( m_treeWidget->selectedItems().at( 0 ) ) )->getModule();
props = module->getProperties();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment