aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/preferences_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-05-14 09:28:29 -0700
committerGerald Combs <gerald@wireshark.org>2015-05-14 16:31:38 +0000
commit2e7524085c6ca9e3794853f7e7748bb664234373 (patch)
treed7597a045278752d831f0ba2ac3c50208451d332 /ui/qt/preferences_dialog.cpp
parent2156413bf9cb093b7f5998399bb6ceb7b4c232ce (diff)
Qt: Apply protocol preferences.
Make sure we call prefs_apply_all when saving preferences. Bug: 11119 Change-Id: Iacf1e28e69c2aebcbbd7dceaa210c8219663665f Reviewed-on: https://code.wireshark.org/review/8462 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/preferences_dialog.cpp')
-rw-r--r--ui/qt/preferences_dialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.cpp b/ui/qt/preferences_dialog.cpp
index 46db04d345..b69435e459 100644
--- a/ui/qt/preferences_dialog.cpp
+++ b/ui/qt/preferences_dialog.cpp
@@ -814,6 +814,14 @@ void PreferencesDialog::on_buttonBox_accepted()
//airpcap_load_decryption_keys(airpcap_if_list);
#endif
+ // gtk/prefs_dlg.c:prefs_main_apply_all
+ /*
+ * Apply the protocol preferences first - "gui_prefs_apply()" could
+ * cause redissection, and we have to make sure the protocol
+ * preference changes have been fully applied.
+ */
+ prefs_apply_all();
+
/* Fill in capture options with values from the preferences */
prefs_to_capture_opts();