aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-11-19 22:32:00 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-11-19 22:32:00 +0000
commitb91d595c77c05b64a7fe015bd53a755b20d20bf5 (patch)
treef312f65e85f484f6d19d770c6fce9b4d6f000330 /file.c
parentf8f41fe3c633ae4cd0b7e9cfd6ff6a4b3367f94d (diff)
downloadwireshark-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/file.c b/file.c
index 08ddbcb32c..e4928de5ee 100644
--- a/file.c
+++ b/file.c
@@ -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();