aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/preference_editor_frame.cpp
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2018-01-05 23:39:55 -0500
committerMichael Mann <mmann78@netscape.net>2018-01-06 17:49:23 +0000
commiteef3c8434d556ad4d3fd9b0f4fdf912145f2670d (patch)
tree51a25eaae635737dcec8e23f9087398c24dd2d75 /ui/qt/preference_editor_frame.cpp
parenta65391f9014acd5cb8e4fe09ef8b2fac4716c024 (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/qt/preference_editor_frame.cpp')
-rw-r--r--ui/qt/preference_editor_frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/preference_editor_frame.cpp b/ui/qt/preference_editor_frame.cpp
index e3b522d9af..a1e3c2b5a6 100644
--- a/ui/qt/preference_editor_frame.cpp
+++ b/ui/qt/preference_editor_frame.cpp
@@ -194,7 +194,7 @@ void PreferenceEditorFrame::on_preferenceLineEdit_returnPressed()
void PreferenceEditorFrame::on_buttonBox_accepted()
{
- bool apply = false;
+ unsigned int apply = 0;
switch(prefs_get_type(pref_)) {
case PREF_UINT:
case PREF_DECODE_AS_UINT: