From: stv Date: Tue, 28 Jun 2005 10:09:56 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: T3_0_0_a4~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=66f2b1098e691c1eda8920821a647251a515b30a;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/Qtx/QtxDblSpinBox.cxx b/src/Qtx/QtxDblSpinBox.cxx index 5c40e9d13..971bef49f 100755 --- a/src/Qtx/QtxDblSpinBox.cxx +++ b/src/Qtx/QtxDblSpinBox.cxx @@ -294,7 +294,7 @@ void QtxDblSpinBox::updateDisplay() editor()->setUpdatesEnabled( upd ); editor()->setText( myCleared ? QString::null : txt ); - if ( !myCleared ) + if ( !myCleared && editor()->hasFocus() ) { if ( editor()->text() == specialValueText() ) editor()->selectAll(); diff --git a/src/Qtx/QtxIntSpinBox.cxx b/src/Qtx/QtxIntSpinBox.cxx index 261266746..70aab81c1 100755 --- a/src/Qtx/QtxIntSpinBox.cxx +++ b/src/Qtx/QtxIntSpinBox.cxx @@ -84,7 +84,7 @@ void QtxIntSpinBox::updateDisplay() if ( myCleared ) editor()->clear(); - else + else if ( editor()->hasFocus() ) { if ( editor()->text() == specialValueText() ) editor()->selectAll();