From 4d5be86c9ba2823da0b6af4d4b415d8f7d2744c4 Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 23 Jan 2006 14:26:03 +0000 Subject: [PATCH] Fix for bug IPAL10703 : SIGSEGV in SUPERV view popup of SALOME. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.2