diff options
Diffstat (limited to 'gtk/capture_if_dlg.c')
-rw-r--r-- | gtk/capture_if_dlg.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |