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());
}
}
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_,
<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>
</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>
</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>