]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Interface of action() virtual function has changed: now it returns bool. 'true'...
authorasv <asv@opencascade.com>
Thu, 4 May 2006 08:12:54 +0000 (08:12 +0000)
committerasv <asv@opencascade.com>
Thu, 4 May 2006 08:12:54 +0000 (08:12 +0000)
src/VVTK/VVTK_ViewWindow.cxx
src/VVTK/VVTK_ViewWindow.h

index a181ad6ab21925511e82e4d4e2e6ac2e8f4c0872..0b012ab25093a1d92af169377c7539a0021d1378 100755 (executable)
@@ -258,14 +258,17 @@ VVTK_ViewWindow
 }
 
 //----------------------------------------------------------------------------
-void 
+bool 
 VVTK_ViewWindow
 ::action( const int accelAction  )
 {
-  if(myMainWindow1->hasFocus())
-    myMainWindow1->action(accelAction);
-  if(myMainWindow2->hasFocus())
-    myMainWindow2->action(accelAction);
+  if ( myMainWindow1->hasFocus() )
+    myMainWindow1->action( accelAction );
+  else if ( myMainWindow2->hasFocus() )
+    myMainWindow2->action( accelAction );
+  else
+    return false;
+  return true;
 }
 
 //----------------------------------------------------------------------------
index 54e4745d03240bd4000d35b22049b5d180687f8c..6920527ced1fff35c30bc6077069dfd988137ab9 100755 (executable)
@@ -105,7 +105,7 @@ public slots:
   //----------------------------------------------------------------------------
 protected:
   virtual 
-  void
+  bool
   action( const int );
 
   virtual QImage dumpView();