summaryrefslogtreecommitdiff
path: root/wireshark-qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r--wireshark-qt.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp
index c549f0f169..1e286f5cbb 100644
--- a/wireshark-qt.cpp
+++ b/wireshark-qt.cpp
@@ -775,6 +775,16 @@ int main(int argc, char *argv[])
init_open_routines();
+ /* 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
+ case any dissectors register preferences. */
+ if (!epan_init(register_all_protocols,register_all_protocol_handoffs,
+ splash_update, NULL)) {
+ SimpleDialog::displayQueuedMessages(main_w);
+ return 2;
+ }
+
#ifdef HAVE_PLUGINS
/* Register all the plugin types we have. */
epan_register_plugin_types(); /* Types known to libwireshark */
@@ -792,16 +802,6 @@ int main(int argc, char *argv[])
register_all_codecs();
#endif
- /* 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
- case any dissectors register preferences. */
- if (!epan_init(register_all_protocols,register_all_protocol_handoffs,
- splash_update, NULL)) {
- SimpleDialog::displayQueuedMessages(main_w);
- return 2;
- }
-
splash_update(RA_LISTENERS, NULL, NULL);
/* Register all tap listeners; we do this before we parse the arguments,