Commit 09284952 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] now the add module action is not disabled when a module is selected. You...

[FIX] now the add module action is not disabled when a module is selected. You can always add modules.
parent 6de16523
......@@ -1027,7 +1027,7 @@ void WQtControlPanel::createCompatibleButtons( boost::shared_ptr< WModule > modu
// build the add menu
QMenu* m = new WQtMenuFiltered( m_moduleTreeWidget );
m->addActions( m_addModuleActionList );
m_addModuleAction->setDisabled( !m_addModuleActionList.size() || module ); // disable if no entry inside or a module was selected
m_addModuleAction->setDisabled( !m_addModuleActionList.size() ); // disable if no entry inside
// delete( m_addModuleAction->menu() ); // ensure that combiners get free'd
m_addModuleAction->setMenu( m );
......
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