From c5b67384a5c8e886df00cbad19eb891041ce9920 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 7 Sep 2005 22:00:25 +0000 Subject: close the capture interfaces dialog if the user pressed "Capture" or "Prepare" this dialog is live capturing from all "known" interfaces while it's open, so huge system load is generated, which is not preferred while doing a real capture. svn path=/trunk/; revision=15719 --- gtk/capture_if_dlg.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk') diff --git a/gtk/capture_if_dlg.c b/gtk/capture_if_dlg.c index 544faa637a..dccf6e27c5 100644 --- a/gtk/capture_if_dlg.c +++ b/gtk/capture_if_dlg.c @@ -121,6 +121,9 @@ capture_do_cb(GtkWidget *capture_bt _U_, gpointer if_data) capture_opts->save_file = NULL; } + /* stop capturing from all interfaces, we are going to do real work now ... */ + window_destroy(cap_if_w); + capture_start_cb(NULL, NULL); } @@ -136,6 +139,9 @@ capture_prepare_cb(GtkWidget *prepare_bt _U_, gpointer if_data) capture_opts->iface = g_strdup(if_dlg_data->device); + /* stop capturing from all interfaces, we are going to do real work now ... */ + window_destroy(cap_if_w); + capture_prep_cb(NULL, NULL); } -- cgit v1.2.3