aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-01-24 01:23:19 +0000
committerGerald Combs <gerald@wireshark.org>2008-01-24 01:23:19 +0000
commit690f8f51f87bfea84c8d0b360ea13c5403b5a96f (patch)
tree50c4f1419fa54a4a568c0e8824f6ff32ab0e27e5
parentfb32ed881241ce2efc942bb6cad18cea97c94378 (diff)
Arrange things so that if '-o "capture.auto_scroll: FALSE"' is passed to
Wireshark on the command line, auto-scroll is actually disabled. svn path=/trunk/; revision=24172
-rw-r--r--gtk/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 482d01f996..fea7b784da 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -2227,9 +2227,6 @@ read_configuration_files(char **gdp_path, char **dp_path)
}
#endif
- /* Fill in capture options with values from the preferences */
- prefs_to_capture_opts();
-
/* Read the capture filter file. */
read_filter_list(CFILTER_LIST, &cf_path, &cf_open_errno);
if (cf_path != NULL) {
@@ -2945,6 +2942,9 @@ main(int argc, char *argv[])
exit(status);
}
+ /* Fill in capture options with values from the preferences */
+ prefs_to_capture_opts();
+
capture_opts_trim_snaplen(capture_opts, MIN_PACKET_SIZE);
capture_opts_trim_ring_num_files(capture_opts);
#endif /* HAVE_LIBPCAP */
@@ -2992,6 +2992,8 @@ main(int argc, char *argv[])
packet_list_set_column_titles();
menu_recent_read_finished();
+ menu_auto_scroll_live_changed(auto_scroll_live);
+
switch (user_font_apply()) {
case FA_SUCCESS:
@@ -5031,7 +5033,7 @@ void change_configuration_profile (const gchar *profile_name)
prefs_reset();
(void) read_configuration_files (&gdp_path, &dp_path);
prefs_apply_all();
-
+
/* Update window view and redraw the toolbar */
update_main_window_name();
toolbar_redraw_all();