mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7b6134ad5c
commit
4796956d84
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user