diff options
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 8a9089b362..d5f17c045f 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -563,6 +563,16 @@ int main(int argc, char *qt_argv[]) return 2; } + // Read the dynamic part of the recent file. This determines whether or + // not the recent list appears in the main window so the earlier we can + // call this the better. + if (!recent_read_dynamic(&rf_path, &rf_open_errno)) { + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, + "Could not open recent file\n\"%s\": %s.", + rf_path, g_strerror(rf_open_errno)); + g_free(rf_path); + } + splash_update(RA_LISTENERS, NULL, NULL); /* Register all tap listeners; we do this before we parse the arguments, @@ -737,15 +747,6 @@ int main(int argc, char *qt_argv[]) main_w->setWSWindowTitle(); //////// - /* Read the dynamic part of the recent file, as we have the gui now ready for - it. */ - if (!recent_read_dynamic(&rf_path, &rf_open_errno)) { - simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, - "Could not open recent file\n\"%s\": %s.", - rf_path, g_strerror(rf_open_errno)); - g_free(rf_path); - } - packet_list_enable_color(recent.packet_list_colorize); g_log(NULL, G_LOG_LEVEL_DEBUG, "FIX: fetch recent color settings"); |