aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2018-01-06 12:10:06 -0500
committerMichael Mann <mmann78@netscape.net>2018-01-07 00:06:21 +0000
commit603bb5097d01740edc20c279d8d8f7aea1949710 (patch)
tree64ae137e23ff9ed570614091a42ce79ca77d4628 /epan/prefs.c
parent7165b608794566d6bdb973bdc20706dc0aaeab51 (diff)
Set captures preferences for PREF_EFFECT_CAPTURE.
This is a simple example of changing preferences that don't affect dissection to something else, so that changing them doesn't cause a file to be redissected unnecessarily Change-Id: I77c64c739e8bbc9f2a202f744f27cb07be4a822b Reviewed-on: https://code.wireshark.org/review/25173 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index b5b99f502a..b0ac5c8162 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -3424,6 +3424,8 @@ prefs_register_modules(void)
*/
capture_module = prefs_register_module(NULL, "capture", "Capture",
"Capture preferences", NULL, FALSE);
+ /* Capture preferences don't affect dissection */
+ prefs_set_module_effect_flags(capture_module, PREF_EFFECT_CAPTURE);
register_string_like_preference(capture_module, "device", "Default capture device",
"Default capture device",