From 59f7f8cd922defa87c25f7cb68aa6834c017786d Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 27 Apr 2012 15:05:27 +0000 Subject: [PATCH] Fix crash on switching to the neutral point (caused by previous bad integration) --- src/LightApp/LightApp_ModuleAction.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2