]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug IPAL10703 : SIGSEGV in SUPERV view popup of SALOME.
authormkr <mkr@opencascade.com>
Mon, 23 Jan 2006 14:26:03 +0000 (14:26 +0000)
committermkr <mkr@opencascade.com>
Mon, 23 Jan 2006 14:26:03 +0000 (14:26 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index 21ec7b4517cb9d0938f20719136b103bee961e0d..13a8e69305d2eb357457204c6e5d7ea01173033f 100644 (file)
@@ -817,6 +817,7 @@ void SUPERVGUI_Main::showPopup(QPopupMenu* p, QMouseEvent* e) {
   //if (dataflow->IsExecuting()) return;
 
   CAM_Application* anApp = ( CAM_Application* )(SUIT_Session::session()->activeApplication());
+  if ( !anApp->activeModule() ) return;
   if ( anApp->activeModule()->moduleName().compare( anApp->moduleTitle( "SUPERV" ) ) !=0 ) return;
 
   if (e->button() == RightButton) {