X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Frep_time.c;fp=src%2Frep_time.c;h=3d67c04e0ac448acf78bacbdc8ddca257e2ba83a;hp=24c53050d2b476ce1454b3d2858331dc5c0cb22e;hb=2ef3e601408ebaeeaf5f40d6967664b012a49979;hpb=ed78ccc9c6d01422d6366c593ffa01e8c8ff5a68 diff --git a/src/rep_time.c b/src/rep_time.c index 24c5305..3d67c04 100644 --- a/src/rep_time.c +++ b/src/rep_time.c @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2016 Maxime DOYEN + * Copyright (C) 1995-2017 Maxime DOYEN * * This file is part of HomeBank. * @@ -1247,7 +1247,10 @@ static void ui_reptime_setup(struct ui_reptime_data *data, guint32 accnum) DB( g_print(" populate\n") ); ui_acc_comboboxentry_populate(GTK_COMBO_BOX(data->PO_acc), GLOBALS->h_acc, ACC_LST_INSERT_REPORT); - ui_acc_comboboxentry_set_active(GTK_COMBO_BOX(data->PO_acc), accnum); + if( accnum ) + ui_acc_comboboxentry_set_active(GTK_COMBO_BOX(data->PO_acc), accnum); + else + gtk_combo_box_set_active(GTK_COMBO_BOX(data->PO_acc), 0); ui_pay_comboboxentry_populate(GTK_COMBO_BOX(data->PO_pay), GLOBALS->h_pay); ui_pay_comboboxentry_set_active(GTK_COMBO_BOX(data->PO_pay), 0);