diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-12-15 08:52:09 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-12-15 08:00:44 +0000 |
commit | 01de59202d79acc1b5d6532f8501bf7a169e9604 (patch) | |
tree | 47cfd651607126aa58b9d5259a7532b935be7cd8 /ui/qt/follow_stream_dialog.cpp | |
parent | e89c4ec7f993c3713062731ddc193faa69f60f3e (diff) |
Qt: TCP/UDP streams are off by one in follow stream window
Bug: 11889
Change-Id: I6a274c8b1df8b78f4063534d534002848bd0f199
Reviewed-on: https://code.wireshark.org/review/12642
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/qt/follow_stream_dialog.cpp')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index b2e5d83bab..cf020ad00e 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -969,9 +969,9 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_stream_index) { case FOLLOW_TCP: { - int stream_count = get_tcp_stream_count() - 1; + int stream_count = get_tcp_stream_count(); ui->streamNumberSpinBox->blockSignals(true); - ui->streamNumberSpinBox->setMaximum(stream_count); + ui->streamNumberSpinBox->setMaximum(stream_count-1); ui->streamNumberSpinBox->setValue(get_follow_index(TCP_STREAM)); ui->streamNumberSpinBox->blockSignals(false); ui->streamNumberSpinBox->setToolTip(tr("%Ln total stream(s).", "", stream_count)); @@ -988,9 +988,9 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_stream_index) return false; } - int stream_count = get_udp_stream_count() - 1; + int stream_count = get_udp_stream_count(); ui->streamNumberSpinBox->blockSignals(true); - ui->streamNumberSpinBox->setMaximum(stream_count); + ui->streamNumberSpinBox->setMaximum(stream_count-1); ui->streamNumberSpinBox->setValue(get_follow_index(UDP_STREAM)); ui->streamNumberSpinBox->blockSignals(false); ui->streamNumberSpinBox->setToolTip(tr("%Ln total stream(s).", "", stream_count)); |