Minor bug fix for house system combo box

In case of a (theoretically impossible) negative value, the ID field
would have crashed the application
This commit is contained in:
2014-09-13 01:04:57 +02:00
parent 0fc538769c
commit 3445830a6d
2 changed files with 3 additions and 1 deletions

View File

@@ -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);