if ( !tb )
{
tb = new QtxToolBar( true, tbw );
- //mainWindow()->addToolBar( tb );
+ mainWindow()->addToolBar( tb ); /// VSV !!! Has to be removed after VVTK removal
tb->setWindowTitle( title );
tb->setObjectName( title );
}
thePopup->addAction( (*it)->toggleViewAction() );
aView->RefreshDumpImage();
}
-// SALOME_ViewExtender* aExtender = myActiveModule->getViewExtender();
-// if (aExtender) {
-// aExtender->contextMenuPopup(thePopup);
-// }
+ if (myActiveModule) {
+ CAM_ViewExtender* aExtender = myActiveModule->getViewExtender();
+ if (aExtender) {
+ aExtender->contextMenuPopup(thePopup);
+ }
+ }
}
/*!