diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-01-07 11:08:07 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-01-07 11:08:07 +0000 |
commit | 4e973150eadefff0962d854e000e485c200158a4 (patch) | |
tree | d9aa32ed37fc17e34b462d17b9c5aff14aa4d8f8 /gtk | |
parent | 6f38a35500136bfdeede1f53bccc9a9902798263 (diff) | |
download | wireshark-4e973150eadefff0962d854e000e485c200158a4.tar.gz |
fix bug #660: we must alphabetically sort columns 0&1, not 0&2
svn path=/trunk/; revision=16974
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/hostlist_table.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c index 13234780b0..eca6612a7b 100644 --- a/gtk/hostlist_table.c +++ b/gtk/hostlist_table.c @@ -220,15 +220,15 @@ hostlist_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2) text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text; switch(clist->sort_column){ - case 0: - case 2: + case 0: /* Address */ + case 1: /* (Port) */ return strcmp (text1, text2); - case 1: - case 3: - case 4: - case 5: - case 6: - case 7: + case 2: /* Packets */ + case 3: /* Bytes */ + case 4: /* Tx Packets */ + case 5: /* Tx Bytes */ + case 6: /* Rx Packets */ + case 7: /* Rx Bytes */ sscanf(text1, "%" PRIu64, &i1); sscanf(text2, "%" PRIu64, &i2); /* XXX - this might cause trouble because of overflow problems */ |