summary refs log tree commit diff
path: root/src/ui/TextField.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/TextField.cpp')
-rw-r--r--src/ui/TextField.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp
index c3eed734..f717bcba 100644
--- a/src/ui/TextField.cpp
+++ b/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;