summaryrefslogtreecommitdiff
path: root/ui/qt/wireshark_application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/wireshark_application.cpp')
-rw-r--r--ui/qt/wireshark_application.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index c799d1a6b1..405cdbbf45 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -23,6 +23,7 @@
#include "wsutil/filesystem.h"
+#include "epan/addr_resolv.h"
#include "epan/disabled_protos.h"
#include "epan/tap.h"
#include "epan/timestamp.h"
@@ -190,6 +191,14 @@ void WiresharkApplication::refreshRecentFiles(void) {
}
}
+void WiresharkApplication::refreshAddressResolution()
+{
+ // Anything new show up?
+ if (host_name_lookup_process()) {
+ emit addressResolutionChanged();
+ }
+}
+
void WiresharkApplication::updateTaps()
{
draw_tap_listeners(FALSE);
@@ -590,6 +599,10 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
connect(&recent_timer_, SIGNAL(timeout()), this, SLOT(refreshRecentFiles()));
recent_timer_.start(2000);
+ addr_resolv_timer_.setParent(this);
+ connect(&addr_resolv_timer_, SIGNAL(timeout()), this, SLOT(refreshAddressResolution()));
+ recent_timer_.start(1000);
+
tap_update_timer_.setParent(this);
tap_update_timer_.setInterval(TAP_UPDATE_DEFAULT_INTERVAL);
connect(this, SIGNAL(appInitialized()), &tap_update_timer_, SLOT(start()));