summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-07-25 10:15:46 -0700
committerAnders Broman <a.broman58@gmail.com>2016-07-26 03:51:35 +0000
commit896751e013a63733702ab2c247ea8ff9db0b0332 (patch)
treea99840a8a0310d7c56b81bd1d1d1a79914fa95c9 /ui
parent2bec34aedcf2c562db1976c40988726816a4185a (diff)
downloadwireshark-896751e013a63733702ab2c247ea8ff9db0b0332.tar.gz
Use a variable consistently.
We test against "field" in ServiceResponseTimeDialog::filterExpression. Make sure we use it within the test as well. Bug: 12627 Change-Id: If11ab9fcdb8394f4366569185808ec1ddfc34dfe Reviewed-on: https://code.wireshark.org/review/16672 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/service_response_time_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/service_response_time_dialog.cpp b/ui/qt/service_response_time_dialog.cpp
index 4336a0bc3a..0e89ef2044 100644
--- a/ui/qt/service_response_time_dialog.cpp
+++ b/ui/qt/service_response_time_dialog.cpp
@@ -324,7 +324,7 @@ const QString ServiceResponseTimeDialog::filterExpression()
QString field = srtt_ti->filterField();
QString value = ti->text(SRT_COLUMN_INDEX);
if (!field.isEmpty() && !value.isEmpty()) {
- filter_expr = QString("%1==%2").arg(srtt_ti->filterField()).arg(value);
+ filter_expr = QString("%1==%2").arg(field).arg(value);
}
}
}