aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_stream_dialog.cpp
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2023-05-10 07:48:59 -0400
committerJohn Thacker <johnthacker@gmail.com>2023-05-11 01:15:20 +0000
commit3eddc1386fc3ad4d2c267b04f5db4330939d77f3 (patch)
tree9022c526ef234174ba4af2579a9adcdab5721bf1 /ui/qt/rtp_stream_dialog.cpp
parent554baf62949436c652263393c7a758bf10d73d63 (diff)
Qt: Add progress bar to RTP and VOIP dialogs
Add the progress bar for a currently loading/tapping file to the button boxes for the RTP Streams and VOIP Calls dialogs. Use delayedRetapPackets in the RTP Streams dialog so that the window appears and fills in (with the progress bar) while loading a large file, instead of waiting until tapping finishes before appearing.
Diffstat (limited to 'ui/qt/rtp_stream_dialog.cpp')
-rw-r--r--ui/qt/rtp_stream_dialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp
index 72bfe0b087..d460da706a 100644
--- a/ui/qt/rtp_stream_dialog.cpp
+++ b/ui/qt/rtp_stream_dialog.cpp
@@ -19,6 +19,7 @@
#include <ui/qt/utils/qt_ui_utils.h>
#include "rtp_analysis_dialog.h"
+#include "progress_frame.h"
#include "main_application.h"
#include "ui/qt/widgets/wireshark_file_dialog.h"
@@ -378,10 +379,13 @@ RtpStreamDialog::RtpStreamDialog(QWidget &parent, CaptureFile &cf) :
connect(this, SIGNAL(rtpAnalysisDialogRemoveRtpStreams(QVector<rtpstream_id_t *>)),
&parent, SLOT(rtpAnalysisDialogRemoveRtpStreams(QVector<rtpstream_id_t *>)));
- /* Scan for RTP streams (redissect all packets) */
- rtpstream_scan(&tapinfo_, cf.capFile(), NULL);
+ ProgressFrame::addToButtonBox(ui->buttonBox, &parent);
updateWidgets();
+
+ if (cap_file_.isValid()) {
+ cap_file_.delayedRetapPackets();
+ }
}
RtpStreamDialog::~RtpStreamDialog()