[mitk-users] Disable context menu action

2016-04-01 Thread Nil Goyette
Hi all, is it possible to disable a context menu action? I saw that m_ComponentSlider looks disabled when you right click on an image with only one component, but it's probably an "inner" behavior, where the object itself knows what to do. I know I can show/hide them with QmitkNodeDescriptorMa

[mitk-users] SetDataStorage in QmitkDataManagerView.cpp

2016-04-01 Thread Nil Goyette
Hi MITK, I was creating a context menu action and I saw that SetDataStorage was never called. I found in QmitkDataManagerView.cpp this snippet: if(className == "QmitkCreatePolygonModelAction") { contextMenuAction->*SetDataStorage*(this->GetDataStorage()); if(smoothed == "false") { con