summaryrefslogtreecommitdiff
path: root/ui/qt/multicast_statistics_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-21 09:45:48 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-21 17:13:11 +0000
commitdd2a2d432a0c1e7ca5b0fe56da8624619f23e35d (patch)
tree289d91d093096c38e06337c2145fc17032a164d3 /ui/qt/multicast_statistics_dialog.cpp
parent69ec4a553050e56cc97ad48a512b3f41453ffa53 (diff)
downloadwireshark-dd2a2d432a0c1e7ca5b0fe56da8624619f23e35d.tar.gz
Multicast and wireless lan statistics fixups.
Make sure "-z multicast,stat[,filter]" and "-z wlan,stat[,filter]" work. Add some missing "-z" items to the man page. Try to fix some MSVC++ warnings. Change-Id: Ie18e5355d595e351f000f14d82781dcdf33141c3 Reviewed-on: https://code.wireshark.org/review/10184 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/multicast_statistics_dialog.cpp')
-rw-r--r--ui/qt/multicast_statistics_dialog.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/qt/multicast_statistics_dialog.cpp b/ui/qt/multicast_statistics_dialog.cpp
index c818ce4e3f..dd2f521ddf 100644
--- a/ui/qt/multicast_statistics_dialog.cpp
+++ b/ui/qt/multicast_statistics_dialog.cpp
@@ -455,8 +455,13 @@ void MulticastStatisticsDialog::captureFileClosing()
// Stat command + args
static void
-multicast_statistics_init(const char *, void*) {
- wsApp->emitStatCommandSignal("MulticastStatistics", NULL, NULL);
+multicast_statistics_init(const char *args, void*) {
+ QStringList args_l = QString(args).split(',');
+ QByteArray filter;
+ if (args_l.length() > 2) {
+ filter = QStringList(args_l.mid(2)).join(",").toUtf8();
+ }
+ wsApp->emitStatCommandSignal("MulticastStatistics", filter.constData(), NULL);
}
static stat_tap_ui multicast_statistics_ui = {