From 66f2b1098e691c1eda8920821a647251a515b30a Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 28 Jun 2005 10:09:56 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxDblSpinBox.cxx | 2 +- src/Qtx/QtxIntSpinBox.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2