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>
This commit is contained in:
Alexis La Goutte 2015-08-24 10:21:55 +02:00 committed by Gerald Combs
parent 7f60878be1
commit 75d9167230
1 changed files with 1 additions and 1 deletions

View File

@ -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);