From d19fea76c824d457454770cc077c13390f7ca0a2 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 3 May 2006 15:20:53 +0000 Subject: [PATCH] Fix for Bug12339 TC: It is impossible to enter a negative value to change the segmentation cursor. --- src/SUIT/SUIT_Accel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2