diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index dd1ccce0f0..5d6d5ed9d7 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -552,6 +552,8 @@ void FollowStreamDialog::setCaptureFile(capture_file *cf) if (!cf) { // We only want to know when the file closes. cap_file_ = NULL; ui->streamNumberSpinBox->setEnabled(false); + ui->streamNumberSpinBox->setToolTip(QString()); + ui->streamNumberLabel->setToolTip(QString()); } } @@ -918,12 +920,17 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_tcp_index) switch (follow_type_) { case FOLLOW_TCP: + { + int stream_count = get_tcp_stream_count() - 1; ui->streamNumberSpinBox->blockSignals(true); - ui->streamNumberSpinBox->setMaximum(get_tcp_stream_count() - 1); + ui->streamNumberSpinBox->setMaximum(stream_count); ui->streamNumberSpinBox->setValue(get_follow_tcp_index()); ui->streamNumberSpinBox->blockSignals(false); + ui->streamNumberSpinBox->setToolTip(tr("%Ln total stream(s).", "", stream_count)); + ui->streamNumberLabel->setToolTip(ui->streamNumberSpinBox->toolTip()); break; + } case FOLLOW_UDP: /* data will be passed via tap callback*/ msg = register_tap_listener("udp_follow", &follow_info_, diff --git a/ui/qt/qtshark_en.qm b/ui/qt/qtshark_en.qm index fc4bf1e190..8a88ce9abb 100755 Binary files a/ui/qt/qtshark_en.qm and b/ui/qt/qtshark_en.qm differ diff --git a/ui/qt/qtshark_en.ts b/ui/qt/qtshark_en.ts index 6b4b312cae..f913e8b3ec 100755 --- a/ui/qt/qtshark_en.ts +++ b/ui/qt/qtshark_en.ts @@ -4,7 +4,7 @@ FollowStreamDialog - + %Ln client pkt(s), %Ln client pkt, @@ -12,7 +12,7 @@ - + %Ln server pkt(s), %Ln server pkt, @@ -20,28 +20,34 @@ - + %Ln turn(s). %Ln turn. %Ln turns. + + + %Ln total stream(s). + + %Ln stream. + %Ln total streams. + + SequenceDialog - %Ln node(s) - + %Ln node %Ln nodes - %Ln item(s) - + %Ln item %Ln items