diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 9 | ||||
-rwxr-xr-x | ui/qt/qtshark_en.qm | bin | 595 -> 539 bytes | |||
-rwxr-xr-x | ui/qt/qtshark_en.ts | 20 |
3 files changed, 21 insertions, 8 deletions
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 Binary files differindex fc4bf1e190..8a88ce9abb 100755 --- a/ui/qt/qtshark_en.qm +++ b/ui/qt/qtshark_en.qm 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 @@ <context> <name>FollowStreamDialog</name> <message numerus="yes"> - <location filename="follow_stream_dialog.cpp" line="139"/> + <location filename="follow_stream_dialog.cpp" line="145"/> <source>%Ln client pkt(s), </source> <translation> <numerusform>%Ln client pkt, </numerusform> @@ -12,7 +12,7 @@ </translation> </message> <message numerus="yes"> - <location filename="follow_stream_dialog.cpp" line="140"/> + <location filename="follow_stream_dialog.cpp" line="146"/> <source>%Ln server pkt(s), </source> <translation> <numerusform>%Ln server pkt, </numerusform> @@ -20,28 +20,34 @@ </translation> </message> <message numerus="yes"> - <location filename="follow_stream_dialog.cpp" line="141"/> + <location filename="follow_stream_dialog.cpp" line="147"/> <source>%Ln turn(s).</source> <translation> <numerusform>%Ln turn.</numerusform> <numerusform>%Ln turns.</numerusform> </translation> </message> + <message numerus="yes"> + <location filename="follow_stream_dialog.cpp" line="928"/> + <source>%Ln total stream(s).</source> + <translation type="unfinished"> + <numerusform>%Ln stream.</numerusform> + <numerusform>%Ln total streams.</numerusform> + </translation> + </message> </context> <context> <name>SequenceDialog</name> <message numerus="yes"> - <location filename="sequence_dialog.cpp" line="284"/> <source>%Ln node(s)</source> - <translation> + <translation type="obsolete"> <numerusform>%Ln node</numerusform> <numerusform>%Ln nodes</numerusform> </translation> </message> <message numerus="yes"> - <location filename="sequence_dialog.cpp" line="285"/> <source>%Ln item(s)</source> - <translation> + <translation type="obsolete"> <numerusform>%Ln item</numerusform> <numerusform>%Ln items</numerusform> </translation> |