aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2017-04-11 18:13:48 +0200
committerMichael Mann <mmann78@netscape.net>2017-04-11 19:28:08 +0000
commit73e24b31de073dfbc7a3e89a811e99b104f1b5df (patch)
tree2d99e21fb190e04500c491931c4ab97fe320de34 /ui
parent692461033b9d17b299d4d2fc8bdf3fb364ab7b47 (diff)
Qt: mark bool and enum prefs as changed when modified via the menu
When preferences are modified, these must be marked to ensure that the "prefs_changed" callback for Lua dissectors is invoked. Bug: 13536 Change-Id: Ib93b2920ebefbc1532d3c6cd097f802a45ec6f35 Reviewed-on: https://code.wireshark.org/review/21016 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/protocol_preferences_menu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/protocol_preferences_menu.cpp b/ui/qt/protocol_preferences_menu.cpp
index 935430d846..75bade980b 100644
--- a/ui/qt/protocol_preferences_menu.cpp
+++ b/ui/qt/protocol_preferences_menu.cpp
@@ -284,6 +284,7 @@ void ProtocolPreferencesMenu::boolPreferenceTriggered()
if (!bpa) return;
bpa->setBoolValue();
+ module_->prefs_changed = TRUE;
prefs_apply(module_);
if (!prefs.gui_use_pref_save) {
@@ -299,6 +300,7 @@ void ProtocolPreferencesMenu::enumPreferenceTriggered()
if (!epa) return;
if (epa->setEnumValue()) { // Changed
+ module_->prefs_changed = TRUE;
prefs_apply(module_);
if (!prefs.gui_use_pref_save) {
prefs_main_write();