diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-19 22:32:00 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-19 22:32:00 +0000 |
commit | b91d595c77c05b64a7fe015bd53a755b20d20bf5 (patch) | |
tree | f312f65e85f484f6d19d770c6fce9b4d6f000330 /file.c | |
parent | f8f41fe3c633ae4cd0b7e9cfd6ff6a4b3367f94d (diff) | |
download | wireshark-b91d595c77c05b64a7fe015bd53a755b20d20bf5.tar.gz wireshark-b91d595c77c05b64a7fe015bd53a755b20d20bf5.tar.bz2 wireshark-b91d595c77c05b64a7fe015bd53a755b20d20bf5.zip |
Change match_selected() to produce a display filter using the selected
field's name, if possible. (If the selected field is not a registered field,
then of course, we still have to use the frame[x:y] syntax).
tree_selected_start and tree_selected_len are on longer globals variables;
finfo_selected has replaced them.
svn path=/trunk/; revision=1070
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.120 1999/11/17 21:58:33 guy Exp $ + * $Id: file.c,v 1.121 1999/11/19 22:31:48 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -84,6 +84,7 @@ #include "dfilter.h" #include "timestamp.h" #include "conversation.h" +#include "globals.h" #ifndef __RESOLV_H__ #include "resolv.h" @@ -1140,6 +1141,7 @@ colorize_packets(capture_file *cf) /* It was selected, so re-select it. */ gtk_clist_select_row(GTK_CLIST(packet_list), cf->current_row, -1); } + finfo_selected = NULL; } else { /* The current frame didn't pass the filter; make the first frame the current frame, and leave it unselected. */ @@ -1576,6 +1578,8 @@ unselect_packet(capture_file *cf) cf->protocol_tree = NULL; } + finfo_selected = NULL; + /* Clear out the display of that packet. */ clear_tree_and_hex_views(); |