summaryrefslogtreecommitdiff
path: root/ui/qt/multicast_statistics_dialog.cpp
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-08-24 10:21:55 +0200
committerGerald Combs <gerald@wireshark.org>2015-08-24 18:05:48 +0000
commit75d9167230350391222dd285ea10fb0a0e30f4bc (patch)
tree51e2dbbb8d472ece1c4c615717c07f8ab156178d /ui/qt/multicast_statistics_dialog.cpp
parent7f60878be1dfc5d1132951ef2b10b1d04fbd2675 (diff)
downloadwireshark-75d9167230350391222dd285ea10fb0a0e30f4bc.tar.gz
Multicast Statistics (Qt Dialog): Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ie2802293576bf9edb28bccf7d464b5e687185096 Reviewed-on: https://code.wireshark.org/review/10223 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/multicast_statistics_dialog.cpp')
-rw-r--r--ui/qt/multicast_statistics_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/multicast_statistics_dialog.cpp b/ui/qt/multicast_statistics_dialog.cpp
index bc046f210e..6c06ff6904 100644
--- a/ui/qt/multicast_statistics_dialog.cpp
+++ b/ui/qt/multicast_statistics_dialog.cpp
@@ -337,7 +337,7 @@ void MulticastStatisticsDialog::updateWidgets()
}
param = burst_alarm_threshold_le_->text().toInt(&ok);
- if (!ok) {
+ if (!ok || param < 1) {
hint += tr("The burst alarm threshold isn't valid. ");
enable_apply = false;
burst_alarm_threshold_le_->setSyntaxState(SyntaxLineEdit::Invalid);