aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window_slots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r--ui/qt/main_window_slots.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 354f0b8dce..22a94563ee 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -255,6 +255,15 @@ void MainWindow::filterPackets(QString& new_filter, bool force)
}
}
+// XXX We should probably call common_create_progress_dlg in CaptureFile and
+// have it handle emitting progress signals and the stop flag.
+void MainWindow::setCaptureStopFlag(bool stop_flag)
+{
+ ProgressBar *progress_bar = main_ui_->statusBar->findChild<ProgressBar *>();
+
+ if (progress_bar) progress_bar->setStopFlag(stop_flag);
+}
+
// A new layout should be applied when it differs from the old layout AND
// at the following times:
// - At startup