From: apo Date: Wed, 3 May 2006 15:20:53 +0000 (+0000) Subject: Fix for Bug12339 TC: It is impossible to enter a negative value to change the segment... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d19fea76c824d457454770cc077c13390f7ca0a2;p=modules%2Fgui.git Fix for Bug12339 TC: It is impossible to enter a negative value to change the segmentation cursor. --- diff --git a/src/SUIT/SUIT_Accel.cxx b/src/SUIT/SUIT_Accel.cxx index 63e8d1116..a82219550 100644 --- a/src/SUIT/SUIT_Accel.cxx +++ b/src/SUIT/SUIT_Accel.cxx @@ -115,7 +115,7 @@ bool SUIT_Accel::eventFilter( QObject *obj, QEvent *event ) const int key = getAccelKey( event ); if ( key ) { SUIT_ViewWindow* vw = ::getParentViewWindow( obj ); - if ( vw ) { + if ( vw && vw->hasFocus() ) { QString type = vw->getViewManager()->getViewModel()->getType(); if ( myMap.contains( type ) ) { IdActionMap idActionMap = myMap[type];