]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
A temporary integration to avoid exception in PoseidonGUI by closing. It will be...
authornds <nds@opencascade.com>
Mon, 7 Dec 2009 15:07:36 +0000 (15:07 +0000)
committernds <nds@opencascade.com>
Mon, 7 Dec 2009 15:07:36 +0000 (15:07 +0000)
src/Qtx/QtxAction.cxx

index 9cfc174c3f6fe87b3b4af76425c6b4525c44d2ac..bae795e9f8d1e785be81cccf665fc712cc5c392c 100755 (executable)
@@ -149,6 +149,7 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e )
 {
   if ( o && o->isWidgetType() )
   {
+    /*
     if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this )
     {
       addedTo( (QWidget*)o );
@@ -161,10 +162,11 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e )
       //ActionNotify a( false, (QWidget*)o );
       //QApplication::sendEvent( this, &a );
     }
-    /*if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this )
+    */
+    if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this )
       QApplication::postEvent( this, new ActionNotify( true, (QWidget*)o ) );
     if ( e->type() == QEvent::ActionRemoved && ((QActionEvent*)e)->action() == this )
-      QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) );*/
+      QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) );
   }
   return QWidgetAction::eventFilter( o, e );
 }