Do RA_DISSECTORS in the Qt UI.
authorGuy Harris <guy@alum.mit.edu>
Thu, 5 Jan 2017 04:03:35 +0000 (20:03 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 5 Jan 2017 04:04:19 +0000 (04:04 +0000)
It looks as if a fair bit of work is done under RA_DISSECTORS before we
register any individual items, so add it to the splash screen update
with the Qt UI - it's used in the GTK+ UI.

Update a comment to explicitly indicate what action transactions are
being counted (other than the individual-item ones, where we have to
call routines that give us a count of items).

Change-Id: I3ec5e5fbfdcf523d693bcf1b0f0ffbe0d05d61ae
Reviewed-on: https://code.wireshark.org/review/19553
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ui/qt/splash_overlay.cpp
wireshark-qt.cpp

index dca211142507593085f616807ab61b5d81702bb5..2c41d63dcfcd2a1255b1f0df0be49d7374d42b2e 100644 (file)
@@ -58,9 +58,10 @@ SplashOverlay::SplashOverlay(QWidget *parent) :
 {
     so_ui_->setupUi(this);
 
-    // Number of register action transitions (e.g. RA_NONE -> RA_DISSECTORS,
-    // RA_DISSECTORS -> RA_PLUGIN_REGISTER) minus two.
-    int register_add = 5;
+    // 6 for:
+    // dissectors, listeners, registering plugins, handingoff plugins,
+    // preferences, and interfaces
+    int register_add = 6;
 #ifdef HAVE_LUA
     register_add += wslua_count_plugins();   /* get count of lua plugins */
 #endif
index d7b9d4f371e56bb6ca5c3423a2390e5cceddfeaa..f87a050ed75fab65a0f7f009465596c16123ee27 100644 (file)
@@ -556,6 +556,8 @@ int main(int argc, char *qt_argv[])
     /* Register all audio codec plugins. */
     register_all_codecs();
 
+    splash_update(RA_DISSECTORS, NULL, NULL);
+
     /* Register all dissectors; we must do this before checking for the
        "-G" flag, as the "-G" flag dumps information registered by the
        dissectors, and we must do it before we read the preferences, in