aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-09-15 14:12:16 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-09-15 12:51:13 +0000
commit577671a160285b0252cb4ac85b195e902f85253c (patch)
treec823e4e4a4bced8467d16917c36db319b8f10ca0 /ui/qt
parente7ef19efc0e928b50644b37772ccbf176e74f766 (diff)
Qt: Don't show text as invalid in disabled widgets
In Interface Toolbar the text widget should not be shown as invalid when the widget is disabled. Change-Id: I100a338216b34874064cb9f808a36703157811a4 Reviewed-on: https://code.wireshark.org/review/23549 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/widgets/interface_toolbar_lineedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/widgets/interface_toolbar_lineedit.cpp b/ui/qt/widgets/interface_toolbar_lineedit.cpp
index 76c1bc5bb2..87291eee38 100644
--- a/ui/qt/widgets/interface_toolbar_lineedit.cpp
+++ b/ui/qt/widgets/interface_toolbar_lineedit.cpp
@@ -118,7 +118,7 @@ void InterfaceToolbarLineEdit::updateStyleSheet(bool is_valid)
"}"
)
.arg(apsz.width() + frameWidth)
- .arg(is_valid ? QString("") : ColorUtils::fromColorT(prefs.gui_text_invalid).name());
+ .arg(is_valid || !isEnabled() ? QString("") : ColorUtils::fromColorT(prefs.gui_text_invalid).name());
setStyleSheet(style_sheet);
}