Stop error when adding commodity

Change the function gnc_tree_view_commodity_select_commodity to just
return when there is no commodity to stop error being logged.
This commit is contained in:
Robert Fewell 2019-06-08 14:50:30 +01:00
parent 7b6134ad5c
commit 4796956d84

View File

@ -670,7 +670,9 @@ gnc_tree_view_commodity_select_commodity (GncTreeViewCommodity *view, gnc_commod
GtkTreePath *s_tree_path;
g_return_if_fail (GNC_IS_TREE_VIEW_COMMODITY(view));
g_return_if_fail (commodity != NULL);
if (!commodity)
return;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(view));