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

[FIX #218] - context menu now only shown for the network view. The network...

[FIX #218] - context menu now only shown for the network view. The network editor dock shows the default qt menu again.
parent 193c39fb
......@@ -132,14 +132,14 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
// the network editor also needs the context menu
if( m_mainWindow->getNetworkEditor() )
{
m_mainWindow->getNetworkEditor()->setContextMenuPolicy( Qt::ActionsContextMenu );
m_mainWindow->getNetworkEditor()->addAction( m_addModuleAction );
m_mainWindow->getNetworkEditor()->addAction( m_connectWithPrototypeAction );
m_mainWindow->getNetworkEditor()->addAction( m_connectWithModuleAction );
m_mainWindow->getNetworkEditor()->addAction( m_disconnectAction );
m_mainWindow->getNetworkEditor()->addAction( m_deleteModuleAction );
m_mainWindow->getNetworkEditor()->addAction( separator );
m_mainWindow->getNetworkEditor()->addAction( m_missingModuleAction );
m_mainWindow->getNetworkEditor()->getView()->setContextMenuPolicy( Qt::ActionsContextMenu );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_addModuleAction );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_connectWithPrototypeAction );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_connectWithModuleAction );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_disconnectAction );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_deleteModuleAction );
m_mainWindow->getNetworkEditor()->getView()->addAction( separator );
m_mainWindow->getNetworkEditor()->getView()->addAction( m_missingModuleAction );
}
m_colormapper = new WQtColormapper( m_mainWindow );
......@@ -199,7 +199,7 @@ WQtControlPanel::~WQtControlPanel()
void WQtControlPanel::completeGuiSetup()
{
m_mainWindow->addGlobalMenu( m_mainWindow->getNetworkEditor() );
m_mainWindow->addGlobalMenu( m_mainWindow->getNetworkEditor()->getView() );
}
void WQtControlPanel::connectSlots()
......
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