Update src/ui/TextField.cpp
This commit is contained in:
parent
4e8a2d8c9e
commit
ebe0cd79d7
@ -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…
Reference in New Issue
Block a user