Adjust startup count for extcap.

The number of extcap splash items is the number of extcap binaries plus
RA_EXTCAP.

Change-Id: I9702da5a94e244ddd95a845a67da9302ee41c826
Reviewed-on: https://code.wireshark.org/review/19981
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Gerald Combs 2017-02-06 12:53:18 -08:00 committed by Anders Broman
parent e9cf760c0c
commit 912aaf0304
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ splash_update(register_action_e action, const char *message, gpointer client_dat
ul_count += wslua_count_plugins (); /* get count of lua plugins */
#endif
#ifdef HAVE_EXTCAP
ul_count += extcap_count(); /* get count of extcap binaries */
ul_count += extcap_count() + 1; /* Count of extcap binaries + registration message */
#endif
}

View File

@ -66,7 +66,7 @@ SplashOverlay::SplashOverlay(QWidget *parent) :
register_add += wslua_count_plugins(); /* get count of lua plugins */
#endif
#ifdef HAVE_EXTCAP
register_add += extcap_count(); /* get count of extcap binaries */
register_add += extcap_count() + 1; /* Count of extcap binaries + registration message */
#endif
so_ui_->progressBar->setMaximum((int)register_count() + register_add);
elapsed_timer_.start();