diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c index 5024d366..8f940c24 100644 --- a/src/fe-gtk/chanview-tabs.c +++ b/src/fe-gtk/chanview-tabs.c @@ -388,7 +388,7 @@ tab_add_sorted (chanview *cv, GtkWidget *box, GtkWidget *tab, chan *ch) if (ch->tag == 0 && cv->cb_compare (a, b) > 0) { gtk_box_pack_start (GTK_BOX (box), tab, 0, 0, 0); - gtk_box_reorder_child (GTK_BOX (box), tab, i); + gtk_box_reorder_child (GTK_BOX (box), tab, ++i); gtk_widget_show (tab); return; }