aboutsummaryrefslogtreecommitdiffstats
path: root/README.linux
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2023-11-14 23:05:40 -0500
committerAndersBroman <a.broman58@gmail.com>2023-11-15 08:57:36 +0000
commitbee7b2cb8e4d61681617e274d2c1ac7d0bbc6f6f (patch)
tree9c3cf76d5a67d8fa4db0fac1f3f2f773dbe8ec78 /README.linux
parent8988d21d265effc3c014bce496406d780bb253c8 (diff)
Qt: Fix Recent Files Max Count at startup
The recent files are read from recent_common in main.cpp, which happens before the prefs are read. (This is largely unavoidable, as we need some things in recent first, notably the last used preference Configuration Profile.) That means we add the recent files before we've read the preference that determines the maximum number of recent files, so it still has its initial value of 10 - the number of files in recent_common will be whatever value the last used Configuration Profile had for the preference, and could be greater (or lesser) than 10. It could also be different than the value for the preference after the preferences are loaded, if Wireshark is started with command line options like -C, -o, or -P. Add a parameter so that on initial startup, when recent_common is read, we add all the files to the list heedless of the pref value. Add connections so that the Menu and the Welcome Page list update the list of recent files whenever the Preferences are changed (including from changing Configuration Profiles), because that might change the max number of recent files. Add a few guards for putting too many items in the recent common file or the menu, for when the preference changes so that the maximum count is lower than it was previously. Fix #16782
Diffstat (limited to 'README.linux')
0 files changed, 0 insertions, 0 deletions