Skip to content

Commit

Permalink
pseudocode for saving tab-reports in book
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Mar 25, 2019
1 parent d27b165 commit 64d0dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnucash/report/report-gnome/gnc-plugin-page-report.c
Expand Up @@ -861,7 +861,7 @@ gnc_plugin_page_report_save_page (GncPluginPage *plugin_page,

key_name = g_strdup_printf(SCHEME_OPTIONS_N, id);
text = gnc_scm_strip_comments(scm_text);
g_key_file_set_value(key_file, group_name, key_name, text);
qof_book_set_option(gnc_get_current_book(), "open-reports", text);
g_free(text);
g_free(key_name);
}
Expand Down Expand Up @@ -921,8 +921,8 @@ gnc_plugin_page_report_recreate_page (GtkWidget *window,
{
if (strncmp(keys[i], SCHEME_OPTIONS, strlen(SCHEME_OPTIONS)) != 0)
continue;
option_string = g_key_file_get_value(key_file, group_name,
keys[i], &error);
option_string = qof_book_get_option(gnc_get_current_book(),
"open-reports");
if (error)
{
g_warning("error reading group %s key %s: %s",
Expand Down

0 comments on commit 64d0dec

Please sign in to comment.