diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-10-10 20:23:59 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-10-10 20:23:59 +0000 |
commit | 561a0713d1fc3f32f9195115f467222bf53e2ea5 (patch) | |
tree | 7d0dcec913b04581d4ba1e2c7a4c25e23a0dbe39 | |
parent | 36fe610b1189ed711bce310b8264c6ae7889fd5a (diff) |
Don't close the Capture Options window if there was an error in what was
selected (and we're not going to start capturing). That way the user can fix
whatever was wrong without having to re-open the dialog.
svn path=/trunk/; revision=52512
-rw-r--r-- | ui/gtk/capture_dlg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c index b3943d75b8..3c49b64977 100644 --- a/ui/gtk/capture_dlg.c +++ b/ui/gtk/capture_dlg.c @@ -5352,7 +5352,8 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_) return; /* Building options window: ignore "capture start" */ } success = capture_dlg_prep(cap_open_w); - window_destroy(GTK_WIDGET(cap_open_w)); + if (success) + window_destroy(GTK_WIDGET(cap_open_w)); if (!success) return; /* error in options dialog */ } |