mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 646129 - Account selection in reports: 'Select Children' doesn't actually select children if they are collapsed
This commit is contained in:
parent
58f34f75e1
commit
fb67e1f265
@ -721,14 +721,15 @@ gnc_option_account_select_children_cb(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
GNCOption *option = data;
|
||||
GncTreeViewAccount *tree_view;
|
||||
Account *account;
|
||||
GList *acct_list = NULL, *acct_iter = NULL;
|
||||
|
||||
tree_view = GNC_TREE_VIEW_ACCOUNT(gnc_option_get_gtk_widget (option));
|
||||
account = gnc_tree_view_account_get_cursor_account(tree_view);
|
||||
if (!account)
|
||||
return;
|
||||
acct_list = gnc_tree_view_account_get_selected_accounts (tree_view);
|
||||
|
||||
gnc_tree_view_account_select_subaccounts(tree_view, account);
|
||||
for (acct_iter = acct_list; acct_iter; acct_iter = acct_iter->next)
|
||||
gnc_tree_view_account_select_subaccounts (tree_view, acct_iter->data);
|
||||
|
||||
g_list_free (acct_list);
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
|
Loading…
Reference in New Issue
Block a user