From 3445830a6d371d0f1033ba298881fb2c3c7cfe61 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 13 Sep 2014 01:04:57 +0200 Subject: [PATCH] Minor bug fix for house system combo box In case of a (theoretically impossible) negative value, the ID field would have crashed the application --- src/ag-window.c | 2 ++ src/resources/ui/ag-window.ui | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ag-window.c b/src/ag-window.c index d4df720..494fbb3 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -1654,6 +1654,8 @@ ag_window_init(AgWindow *window) NULL ); + // Fill the house system model and set the combo box on the Edit tab to the + // default one house_system_list = gswe_all_house_systems(); g_list_foreach(house_system_list, (GFunc)ag_window_add_house_system, priv); g_list_free(house_system_list); diff --git a/src/resources/ui/ag-window.ui b/src/resources/ui/ag-window.ui index dfedb9a..7c0c4a3 100644 --- a/src/resources/ui/ag-window.ui +++ b/src/resources/ui/ag-window.ui @@ -717,7 +717,7 @@ True False house_system_model - 0 + 1 5