diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-09-07 22:00:25 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-09-07 22:00:25 +0000 |
commit | c5b67384a5c8e886df00cbad19eb891041ce9920 (patch) | |
tree | b84cdc7416beb568eb8e9ef160791339a80d68e2 /gtk | |
parent | 56c76e637eb5867ac5a2e27af7af418052e53a23 (diff) |
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
Diffstat (limited to 'gtk')
-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); } |