aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-28 19:10:40 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-28 19:10:40 +0000
commit1ae8203b464ac041c71e6c114d31cdfc595e0a59 (patch)
tree8eca48daa8f43fd3b294ebee38570f3c2302152c
parent5e077c6d6cea6cdc82071e1b78963cd7327713c0 (diff)
No pcap, no interfaces to monitor.
svn path=/trunk/; revision=43530
-rw-r--r--ui/gtk/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 2fdeb82d81..84d293d7ba 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -3202,13 +3202,17 @@ main(int argc, char *argv[])
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_INFO, "Wireshark is up and ready to go");
+#ifdef HAVE_LIBPCAP
gtk_iface_mon_start();
+#endif
/* we'll enter the GTK loop now and hand the control over to GTK ... */
gtk_main();
/* ... back from GTK, we're going down now! */
+#ifdef HAVE_LIBPCAP
gtk_iface_mon_stop();
+#endif
/* deregister our pid */
u3_deregister_pid();