From e5e1cf2c249cf728c2e2c578167ec7bd5f61afc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Wed, 29 May 2019 12:13:20 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@543 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/widgets/evalspinbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qad/widgets/evalspinbox.cpp b/qad/widgets/evalspinbox.cpp index 2b02c7c..6bf2c8d 100644 --- a/qad/widgets/evalspinbox.cpp +++ b/qad/widgets/evalspinbox.cpp @@ -256,7 +256,7 @@ void EvalSpinBox::focusInEvent(QFocusEvent * event) { status->show(); lineEdit()->blockSignals(true); lineEdit()->setStyleSheet(""); - //if (eval.expression() != "0") lineEdit()->setText(eval.expression()); + if (eval.expression() == "0") lineEdit()->clear(); lineEdit()->blockSignals(false); QAbstractSpinBox::focusInEvent(event); resizeIcons();