]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Tue, 28 Jun 2005 10:09:56 +0000 (10:09 +0000)
committerstv <stv@opencascade.com>
Tue, 28 Jun 2005 10:09:56 +0000 (10:09 +0000)
src/Qtx/QtxDblSpinBox.cxx
src/Qtx/QtxIntSpinBox.cxx

index 5c40e9d135c3066cf84e6fec517678419a5013be..971bef49f0f932dfee51bad50e7f818ff4735505 100755 (executable)
@@ -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();
index 261266746281199cc8d061c2538c7588c51bd1f1..70aab81c12407148691b287ef2bb85573284a264 100755 (executable)
@@ -84,7 +84,7 @@ void QtxIntSpinBox::updateDisplay()
 
   if ( myCleared )
     editor()->clear();
-  else
+  else if ( editor()->hasFocus() )
   {
     if ( editor()->text() == specialValueText() )
       editor()->selectAll();