diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2021-10-04 10:08:30 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2021-10-04 10:08:30 +0200 |
commit | e724ab1b41eea95e7b37aacaddd0fe26b12181ae (patch) | |
tree | 355441dfbc97094982c5e262457b1e565e314ea9 /ui/qt | |
parent | e866034c55a139587d1d2d5340802dedbaa81801 (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.cpp | 2 |
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 |