aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-06-01 22:24:05 +0000
committerGuy Harris <guy@alum.mit.edu>1999-06-01 22:24:05 +0000
commit885e4ddfcd9841eab2678ff31eee8ea641672937 (patch)
tree356ededb2c33964e519d9b319759c8ae8595e34e /capture.c
parent653de14d44ab1dbf4c6a6354eda343ad84baf3c8 (diff)
When constructing the list for the "Count" combo box in the "Capture"
dialog box, put "0 (Infinite)" first, so that we default to that rather than to the number of packets in the last capture we read. svn path=/trunk/; revision=300
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture.c b/capture.c
index cdab7b04f3..0d954a14c9 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.22 1999/05/11 18:51:09 deniel Exp $
+ * $Id: capture.c,v 1.23 1999/06/01 22:24:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -205,11 +205,11 @@ capture_prep_cb(GtkWidget *w, gpointer d) {
gtk_box_pack_start(GTK_BOX(count_hb), count_lb, FALSE, FALSE, 0);
gtk_widget_show(count_lb);
+ count_list = g_list_append(count_list, count_item1);
if (cf.count) {
snprintf(count_item2, 15, "%d", cf.count);
count_list = g_list_append(count_list, count_item2);
}
- count_list = g_list_append(count_list, count_item1);
count_cb = gtk_combo_new();
gtk_combo_set_popdown_strings(GTK_COMBO(count_cb), count_list);