aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_filter_edit.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-05 15:39:05 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-01-05 14:40:27 +0000
commita7e3ba03ce6eaeebc762322cb1691adeeda46ff8 (patch)
tree6fe436b18c7d6c2891a46032b75511b82501ea6a /ui/qt/capture_filter_edit.cpp
parentb4ee72d4f4025fb5e9341649ce0fe26058d1c1ae (diff)
Qt: Show capture filter warning
Change-Id: I080bcb25edcee0c38984cd1a7f7f36a7fd3ff36c Reviewed-on: https://code.wireshark.org/review/13055 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/capture_filter_edit.cpp')
-rw-r--r--ui/qt/capture_filter_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/capture_filter_edit.cpp b/ui/qt/capture_filter_edit.cpp
index 7e7765e4e0..bc8a2add37 100644
--- a/ui/qt/capture_filter_edit.cpp
+++ b/ui/qt/capture_filter_edit.cpp
@@ -310,7 +310,7 @@ void CaptureFilterEdit::setFilterSyntaxState(QString filter, int state, QString
if (filter.compare(text()) == 0) { // The user hasn't changed the filter
setSyntaxState((SyntaxState)state);
- if (!valid) {
+ if (!err_msg.isEmpty()) {
emit pushFilterSyntaxStatus(err_msg);
}
}