summary refs log tree commit diff
path: root/src/ui/TextField.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-11-25 00:10:13 +0100
committerGitHub <noreply@github.com>2020-11-25 00:10:13 +0100
commitebe0cd79d7393dea1886aca8207ff5bb633f464a (patch)
tree0702e72eb136c2b5b91c25508c72570a5c335b89 /src/ui/TextField.cpp
parentremove QFontMEtrics declaration (diff)
downloadnheko-ebe0cd79d7393dea1886aca8207ff5bb633f464a.tar.xz
Update src/ui/TextField.cpp
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;