aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-10-10 20:23:59 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-10-10 20:23:59 +0000
commit561a0713d1fc3f32f9195115f467222bf53e2ea5 (patch)
tree7d0dcec913b04581d4ba1e2c7a4c25e23a0dbe39 /ui/gtk
parent36fe610b1189ed711bce310b8264c6ae7889fd5a (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
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/capture_dlg.c3
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 */
}