aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2021-10-04 10:08:30 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2021-10-04 10:08:30 +0200
commite724ab1b41eea95e7b37aacaddd0fe26b12181ae (patch)
tree355441dfbc97094982c5e262457b1e565e314ea9 /ui/qt
parente866034c55a139587d1d2d5340802dedbaa81801 (diff)
Qt: Handle fieldsChanged before prefs_apply_all
Improve reload Lua plugins to handle fieldsChanged before calling the preferences apply callback, because a proto.prefs_changed() function may call reload_packets() or redissect_packets(), and this requires the fields to be updated.
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/main_window_slots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index d22b2708aa..b2b15c912a 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -1558,8 +1558,8 @@ void MainWindow::reloadLuaPlugins()
wsApp->readConfigurationFiles(true);
commandline_options_reapply();
- prefs_apply_all();
fieldsChanged();
+ prefs_apply_all();
if (uses_lua_filehandler) {
// Reload the file in case the FileHandler has changed