gnucash stable: Bug 799264 - option account selector fails to include appropriate...

John Ralls jralls at code.gnucash.org
Mon Apr 15 17:04:27 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/6506e485 (commit)
	from  https://github.com/Gnucash/gnucash/commit/a54caaab (commit)



commit 6506e4854250ac543b58491bdb41a0846d74ab1c
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Apr 15 14:00:43 2024 -0700

    Bug 799264 - option account selector fails to include appropriate...
    
    hidden accounts
    
    Changed the default for show hidden accounts to true so that reports
    that select by account type include hidden options. This won't affect
    cases where specific acconts are selected.

diff --git a/gnucash/gnome-utils/gnc-option-gtk-ui.cpp b/gnucash/gnome-utils/gnc-option-gtk-ui.cpp
index 8babd0ce13..0ae6c285f1 100644
--- a/gnucash/gnome-utils/gnc-option-gtk-ui.cpp
+++ b/gnucash/gnome-utils/gnc-option-gtk-ui.cpp
@@ -947,7 +947,7 @@ create_account_widget(GncOption& option, char *name)
 
         for (i = 0; i < NUM_ACCOUNT_TYPES; i++)
             avi.include_type[i] = FALSE;
-        avi.show_hidden = FALSE;
+        avi.show_hidden = TRUE;
 
         for (node = acct_type_list; node; node = node->next)
         {
@@ -968,7 +968,7 @@ create_account_widget(GncOption& option, char *name)
 
         for (i = 0; i < NUM_ACCOUNT_TYPES; i++)
             avi.include_type[i] = TRUE;
-        avi.show_hidden = FALSE;
+        avi.show_hidden = TRUE;
         gnc_tree_view_account_set_view_info (GNC_TREE_VIEW_ACCOUNT (tree), &avi);
     }
 
@@ -1033,7 +1033,7 @@ create_account_widget(GncOption& option, char *name)
     button = gtk_check_button_new_with_label(_("Show Hidden Accounts"));
     gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
     gtk_widget_set_tooltip_text(button, _("Show accounts that have been marked hidden."));
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE);
+    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
     g_signal_connect(G_OBJECT(button), "toggled",
                      G_CALLBACK(show_hidden_toggled_cb), &option);
 



Summary of changes:
 gnucash/gnome-utils/gnc-option-gtk-ui.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list