aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2019-09-01 20:46:57 -0400
committerAnders Broman <a.broman58@gmail.com>2019-09-02 03:31:21 +0000
commitf959f203a1d54f2f50d3ca495457b9a2e1f8965d (patch)
treeb099e76fdbed0af2bfd2a4b232755561c2f049a9
parent8131a4cfa9371c1981484233fdb6c84fd1e4e7e0 (diff)
Add number of comments in capture file to status bar
Ping-Bug: 15799 Change-Id: Icad9c4de620c0ffc9c4aa1a0b1b0d1ea444f481f Reviewed-on: https://code.wireshark.org/review/34425 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/main_status_bar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/main_status_bar.cpp b/ui/qt/main_status_bar.cpp
index 1c5e08be0a..bea6a829c3 100644
--- a/ui/qt/main_status_bar.cpp
+++ b/ui/qt/main_status_bar.cpp
@@ -477,6 +477,11 @@ void MainStatusBar::showCaptureStatistics()
.arg(cap_file_->ignored_count)
.arg((100.0*cap_file_->ignored_count)/cap_file_->count, 0, 'f', 1));
}
+ if (cap_file_->packet_comment_count > 0) {
+ packets_str.append(QString(tr(" %1 Comments: %2"))
+ .arg(UTF8_MIDDLE_DOT)
+ .arg(cap_file_->packet_comment_count));
+ }
if(prefs.gui_qt_show_file_load_time && !cap_file_->is_tempfile) {
/* Loading an existing file */
gulong computed_elapsed = cf_get_computed_elapsed(cap_file_);