From f01f43d0bddc56315d488e766671cac783a49139 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 29 May 2008 11:37:50 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxActionToolMgr.cxx | 2 +- src/SVTK/SVTK_ViewModel.cxx | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Qtx/QtxActionToolMgr.cxx b/src/Qtx/QtxActionToolMgr.cxx index 84f285313..2de50600d 100644 --- a/src/Qtx/QtxActionToolMgr.cxx +++ b/src/Qtx/QtxActionToolMgr.cxx @@ -121,7 +121,7 @@ int QtxActionToolMgr::createToolBar( const QString& title, const int tid, QMainW 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 ); } diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index ecd4da93a..f01338188 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -222,10 +222,12 @@ SVTK_Viewer 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); + } + } } /*! -- 2.39.2