diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-10-05 05:40:34 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-10-05 05:40:34 +0000 |
commit | 6951f00068972589e779bb33070f3181caf499da (patch) | |
tree | 6c418e8e56878ec7af193e64f97794956b6cbbb4 /win32 | |
parent | e18e2694c6b5529fc65ca06103e043540ca70595 (diff) |
From Sake Blok and Michael Mann:
Change "File -> Save As" to only save the displayed frames by default.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6192
svn path=/trunk/; revision=39264
Diffstat (limited to 'win32')
-rw-r--r-- | win32/file_dlg_win32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/file_dlg_win32.c b/win32/file_dlg_win32.c index 06a7ae4072..88edf7dbdc 100644 --- a/win32/file_dlg_win32.c +++ b/win32/file_dlg_win32.c @@ -1559,6 +1559,8 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { /* init the packet range */ packet_range_init(&g_range); + /* default to displayed packets */ + g_range.process_filtered = TRUE; /* Fill in the file format list */ /*build_file_format_list(sf_hwnd);*/ @@ -1992,6 +1994,8 @@ export_file_hook_proc(HWND ef_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) { case WM_INITDIALOG: /* init the printing range */ packet_range_init(&print_args.range); + /* default to displayed packets */ + print_args.range.process_filtered = TRUE; range_handle_wm_initdialog(ef_hwnd, &print_args.range); format_handle_wm_initdialog(ef_hwnd, &print_args); |