From: mkr Date: Mon, 23 Jan 2006 14:26:03 +0000 (+0000) Subject: Fix for bug IPAL10703 : SIGSEGV in SUPERV view popup of SALOME. X-Git-Tag: mergeto_trunk_07Feb06~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d5be86c9ba2823da0b6af4d4b415d8f7d2744c4;p=modules%2Fsuperv.git Fix for bug IPAL10703 : SIGSEGV in SUPERV view popup of SALOME. --- diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 21ec7b4..13a8e69 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -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) {