From: vsr Date: Fri, 27 Apr 2012 15:05:27 +0000 (+0000) Subject: Fix crash on switching to the neutral point (caused by previous bad integration) X-Git-Tag: TRIPOLI_323 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59f7f8cd922defa87c25f7cb68aa6834c017786d;p=modules%2Fgui.git Fix crash on switching to the neutral point (caused by previous bad integration) --- diff --git a/src/LightApp/LightApp_ModuleAction.cxx b/src/LightApp/LightApp_ModuleAction.cxx index ff33e6c63..76fe69750 100755 --- a/src/LightApp/LightApp_ModuleAction.cxx +++ b/src/LightApp/LightApp_ModuleAction.cxx @@ -439,8 +439,10 @@ void LightApp_ModuleAction::removedFrom( QWidget* w ) */ bool LightApp_ModuleAction::event( QEvent* e ) { - if ( e->type() == QEvent::MaxUser ) + if ( e->type() == QEvent::MaxUser ) { activate( ((ActivateEvent*)e)->id(), false ); + return true; + } return QtxAction::event( e ); }