Update src/ui/TextField.cpp

pull/334/head
DeepBlueV7.X 4 years ago committed by GitHub
parent 4e8a2d8c9e
commit ebe0cd79d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ui/TextField.cpp

@ -159,7 +159,7 @@ QColor
TextField::underlineColor() const
{
if (!underline_color_.isValid()) {
if (TextField::isValid() || !isModified())
if ((hasAcceptableInput() && isValid()) || !isModified())
return QPalette().color(QPalette::Highlight);
else
return Qt::red;

Loading…
Cancel
Save