diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-05-01 19:24:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-05-01 19:24:44 +0000 |
commit | 52a04a6f71b8add15bca40b1ddb2ae002ce02cf5 (patch) | |
tree | 482756083988d8e6704f9e161ae392592137bef2 | |
parent | 2c523296815a8ae6b16c20a5180d36aa918b1a98 (diff) |
bugfix: remove all elements on "tree reset", don't keep the first entry in the list
svn path=/trunk/; revision=10757
-rw-r--r-- | gtk/endpoint_talkers_table.c | 4 | ||||
-rw-r--r-- | gtk/hostlist_table.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gtk/endpoint_talkers_table.c b/gtk/endpoint_talkers_table.c index 10203e9073..aabcf45b73 100644 --- a/gtk/endpoint_talkers_table.c +++ b/gtk/endpoint_talkers_table.c @@ -4,7 +4,7 @@ * endpoint_talkers_table 2003 Ronnie Sahlberg * Helper routines common to all endpoint talkers tap. * - * $Id: endpoint_talkers_table.c,v 1.34 2004/04/12 07:10:11 ulfl Exp $ + * $Id: endpoint_talkers_table.c,v 1.35 2004/05/01 19:24:44 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -218,7 +218,7 @@ reset_ett_table_data(endpoints_table *et) /* remove all entries from the clist */ for(i=0;i<et->num_endpoints;i++){ - gtk_clist_remove(et->table, et->num_endpoints-i); + gtk_clist_remove(et->table, et->num_endpoints-i-1); } /* delete all endpoints */ diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c index f07561adf8..64288c25ea 100644 --- a/gtk/hostlist_table.c +++ b/gtk/hostlist_table.c @@ -2,7 +2,7 @@ * modified from endpoint_talkers_table.c 2003 Ronnie Sahlberg * Helper routines common to all host list taps. * - * $Id: hostlist_table.c,v 1.6 2004/04/12 07:10:11 ulfl Exp $ + * $Id: hostlist_table.c,v 1.7 2004/05/01 19:24:44 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -150,7 +150,7 @@ reset_hostlist_table_data(hostlist_table *hosts) /* remove all entries from the clist */ for(i=0;i<hosts->num_hosts;i++){ - gtk_clist_remove(hosts->table, hosts->num_hosts-i); + gtk_clist_remove(hosts->table, hosts->num_hosts-i-1); } /* delete all hosts */ |