diff options
author | Michael Mann <mmann78@netscape.net> | 2018-01-05 23:39:55 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2018-01-06 17:49:23 +0000 |
commit | eef3c8434d556ad4d3fd9b0f4fdf912145f2670d (patch) | |
tree | 51a25eaae635737dcec8e23f9087398c24dd2d75 /ui/gtk/airpcap_gui_utils.c | |
parent | a65391f9014acd5cb8e4fe09ef8b2fac4716c024 (diff) |
Add ability for preferences to determine what they can change.
Add flags field to preference structure to help determine what
areas of Wireshark are affected by a preference changing. The
intent is to be able to distinguish dissection from GUI or other
changes that are not dissection.
The default is to have all preferences affect dissection, but their
flags can be changed. This patch doesn't change any flags from the
default.
Change-Id: Ied5ae961bc3f33f5b730b2892fff3fa0898380b8
Reviewed-on: https://code.wireshark.org/review/25171
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/airpcap_gui_utils.c')
-rw-r--r-- | ui/gtk/airpcap_gui_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/airpcap_gui_utils.c b/ui/gtk/airpcap_gui_utils.c index 8e46b347b3..8cc1d3ee28 100644 --- a/ui/gtk/airpcap_gui_utils.c +++ b/ui/gtk/airpcap_gui_utils.c @@ -562,7 +562,7 @@ load_wlan_driver_wep_keys(void) * Signal that we've changed things, and run the 802.11 dissector's * callback */ - wlan_prefs->prefs_changed = TRUE; + wlan_prefs->prefs_changed_flags |= PREF_EFFECT_DISSECTION; prefs_apply(wlan_prefs); @@ -772,7 +772,7 @@ save_wlan_driver_wep_keys(void) /* Signal that we've changed things, and run the 802.11 dissector's * callback */ - wlan_prefs->prefs_changed = TRUE; + wlan_prefs->prefs_changed_flags |= PREF_EFFECT_DISSECTION; /* Apply changes for the specified preference */ prefs_apply(wlan_prefs); @@ -829,7 +829,7 @@ save_wlan_wireshark_wep_keys(GList* key_ls) /* Signal that we've changed things, and run the 802.11 dissector's * callback */ - wlan_prefs->prefs_changed = TRUE; + wlan_prefs->prefs_changed_flags |= PREF_EFFECT_DISSECTION; /* Apply changes for the specified preference */ prefs_apply(wlan_prefs); @@ -1469,7 +1469,7 @@ set_wireshark_decryption(gboolean on_off) * Signal that we've changed things, and run the 802.11 dissector's * callback */ - wlan_prefs->prefs_changed = TRUE; + wlan_prefs->prefs_changed_flags |= PREF_EFFECT_DISSECTION; prefs_apply(wlan_prefs); } |