aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/lte_mac_statistics_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/lte_mac_statistics_dialog.cpp')
-rw-r--r--ui/qt/lte_mac_statistics_dialog.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/qt/lte_mac_statistics_dialog.cpp b/ui/qt/lte_mac_statistics_dialog.cpp
index 40ceaf2..eb5c31c 100644
--- a/ui/qt/lte_mac_statistics_dialog.cpp
+++ b/ui/qt/lte_mac_statistics_dialog.cpp
@@ -574,6 +574,10 @@ LteMacStatisticsDialog::LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf,
// Set handler for when the tree item changes to set the appropriate labels.
connect(statsTreeWidget(), SIGNAL(itemSelectionChanged()),
this, SLOT(updateHeaderLabels()));
+
+ // Set handler for when display filter string is changed.
+ connect(this, SIGNAL(updateFilter(QString)),
+ this, SLOT(filterUpdated(QString)));
}
// Destructor.
@@ -786,7 +790,7 @@ void LteMacStatisticsDialog::fillTree()
{
if (!registerTapListener("mac-lte",
this,
- NULL,
+ displayFilter_.toLatin1().data(),
TL_REQUIRES_NOTHING,
tapReset,
tapPacket,
@@ -832,6 +836,13 @@ void LteMacStatisticsDialog::captureFileClosing()
WiresharkDialog::captureFileClosing();
}
+// Store filter from signal.
+void LteMacStatisticsDialog::filterUpdated(QString filter)
+{
+ displayFilter_ = filter;
+}
+
+
// Stat command + args
static void