aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-06-24 16:48:23 -0700
committerAnders Broman <a.broman58@gmail.com>2016-06-26 06:22:46 +0000
commit4addfc67b4cd35601d5f9c5ce134f23ea145934a (patch)
treeaf753108eb5c8f1d600aefded360dd3aa8408b5c /ui/qt
parent60cdee9e307c15928a542adc547f27fd752c4837 (diff)
Add an RA_INTERFACES register action.
Add RA_INTERFACES between RA_PREFERENCES and RA_CONFIGURATION. Wireshark was spending a suspiciously long time loading module preferences here. (Now we just need to find out why that section of the code is slow.) Change-Id: Iecbe55e8e10c8844bcb151a13e383cb13a3f6eb1 Reviewed-on: https://code.wireshark.org/review/16133 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/splash_overlay.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/splash_overlay.cpp b/ui/qt/splash_overlay.cpp
index fec318607a..d8f6d34cd7 100644
--- a/ui/qt/splash_overlay.cpp
+++ b/ui/qt/splash_overlay.cpp
@@ -55,7 +55,7 @@ SplashOverlay::SplashOverlay(QWidget *parent) :
// Number of register action transitions (e.g. RA_NONE -> RA_DISSECTORS,
// RA_DISSECTORS -> RA_PLUGIN_REGISTER) minus two.
- int register_add = 4;
+ int register_add = 5;
#ifdef HAVE_LUA
register_add += wslua_count_plugins(); /* get count of lua plugins */
#endif
@@ -159,6 +159,9 @@ void SplashOverlay::splashUpdate(register_action_e action, const char *message)
case RA_PREFERENCES:
action_msg = tr("Loading module preferences");
break;
+ case RA_INTERFACES:
+ action_msg = tr("Finding local interfaces");
+ break;
case RA_CONFIGURATION:
action_msg = tr("Loading configuration files");
break;