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 /gtk/hostlist_table.c | |
parent | 2c523296815a8ae6b16c20a5180d36aa918b1a98 (diff) |
bugfix: remove all elements on "tree reset", don't keep the first entry in the list
svn path=/trunk/; revision=10757
Diffstat (limited to 'gtk/hostlist_table.c')
-rw-r--r-- | gtk/hostlist_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |