aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-07-10 00:17:03 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-07-10 08:08:55 +0000
commit3faf0dde7672d26270eb373e8596830c7c9e1511 (patch)
tree8f52811c6de66ee85d9327d82de04c24eca97a82
parent01b28caf75cfbf0b936af44b1c7c8abbbe4e9a8b (diff)
Qt: add assert (CID 1311486).
Change-Id: I62290f1f1c7856ee431705a64fae2022b850234a Reviewed-on: https://code.wireshark.org/review/16361 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--ui/qt/service_response_time_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/service_response_time_dialog.cpp b/ui/qt/service_response_time_dialog.cpp
index df166db0a0..4336a0bc3a 100644
--- a/ui/qt/service_response_time_dialog.cpp
+++ b/ui/qt/service_response_time_dialog.cpp
@@ -320,9 +320,10 @@ const QString ServiceResponseTimeDialog::filterExpression()
QTreeWidgetItem *ti = statsTreeWidget()->selectedItems()[0];
if (ti->type() == srt_row_type_) {
SrtTableTreeWidgetItem *srtt_ti = static_cast<SrtTableTreeWidgetItem *>(ti->parent());
+ g_assert(srtt_ti);
QString field = srtt_ti->filterField();
QString value = ti->text(SRT_COLUMN_INDEX);
- if (srtt_ti && !field.isEmpty() && !value.isEmpty()) {
+ if (!field.isEmpty() && !value.isEmpty()) {
filter_expr = QString("%1==%2").arg(srtt_ti->filterField()).arg(value);
}
}