Skip to content
Snippets Groups Projects
Unverified Commit ebe0cd79 authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Update src/ui/TextField.cpp

parent 4e8a2d8c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment