aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/prefs_dlg.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2006-11-16 07:04:02 +0000
committerStephen Fisher <steve@stephen-fisher.com>2006-11-16 07:04:02 +0000
commitbd9673f84f6f4fd947c5b7f24573beaa28f8d1e1 (patch)
tree3eca0ad58a90d2ecc6a7b2736c78719650f03983 /gtk/prefs_dlg.c
parentc4840e61aa3ae2d4bfbdf35411ae96964f9f3d19 (diff)
Fix for bug 948, "Apply capture preferences not applying." Now when the user
changes a capture option in the preferences, it will show up right away in the capture options dialog. svn path=/trunk/; revision=19908
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r--gtk/prefs_dlg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c
index ea1fa31d23..792f3c29a8 100644
--- a/gtk/prefs_dlg.c
+++ b/gtk/prefs_dlg.c
@@ -1371,6 +1371,9 @@ prefs_main_ok_cb(GtkWidget *ok_bt _U_, gpointer parent_w)
prefs_main_apply_all(parent_w);
+ /* Fill in capture options with values from the preferences */
+ prefs_to_capture_opts();
+
#ifdef HAVE_AIRPCAP
prefs_airpcap_update();
#endif
@@ -1400,6 +1403,9 @@ prefs_main_apply_cb(GtkWidget *apply_bt _U_, gpointer parent_w)
prefs_main_apply_all(parent_w);
+ /* Fill in capture options with values from the preferences */
+ prefs_to_capture_opts();
+
#ifdef HAVE_AIRPCAP
prefs_airpcap_update();
#endif
@@ -1436,6 +1442,9 @@ prefs_main_save_cb(GtkWidget *save_bt _U_, gpointer parent_w)
4) we did apply the protocol preferences, at least, in the past. */
prefs_main_apply_all(parent_w);
+ /* Fill in capture options with values from the preferences */
+ prefs_to_capture_opts();
+
if (must_redissect) {
/* Redissect all the packets, and re-evaluate the display filter. */
cf_redissect_packets(&cfile);