diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2020-11-25 00:10:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 00:10:13 +0100 |
commit | ebe0cd79d7393dea1886aca8207ff5bb633f464a (patch) | |
tree | 0702e72eb136c2b5b91c25508c72570a5c335b89 /src/ui | |
parent | remove QFontMEtrics declaration (diff) | |
download | nheko-ebe0cd79d7393dea1886aca8207ff5bb633f464a.tar.xz |
Update src/ui/TextField.cpp
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/TextField.cpp | 2 |
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; |