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
This commit is contained in:
Ulf Lamping 2005-09-07 22:00:25 +00:00
parent 56c76e637e
commit c5b67384a5
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}