gnucash maint: typo fix edd7efd95 book->!book bail out
Christopher Lam
clam at code.gnucash.org
Sat Jul 11 00:49:30 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/58a08a01 (commit)
from https://github.com/Gnucash/gnucash/commit/ae04d671 (commit)
commit 58a08a01251f9d904439cfb2b8325dc599f51f40
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sat Jul 11 12:48:46 2020 +0800
typo fix edd7efd95 book->!book bail out
diff --git a/gnucash/gnome/gnc-plugin-page-register.c b/gnucash/gnome/gnc-plugin-page-register.c
index c7ab6d0b2..6f6d6137e 100644
--- a/gnucash/gnome/gnc-plugin-page-register.c
+++ b/gnucash/gnome/gnc-plugin-page-register.c
@@ -1816,7 +1816,7 @@ gnc_plugin_page_register_recreate_page (GtkWidget* window,
include_subs = (g_ascii_strcasecmp (reg_type, LABEL_SUBACCOUNT) == 0);
DEBUG ("Include subs: %d", include_subs);
book = qof_session_get_book (gnc_get_current_session());
- if (book)
+ if (!book)
{
LEAVE("Session has no book");
return NULL;
diff --git a/gnucash/gnome/gnc-plugin-page-register2.c b/gnucash/gnome/gnc-plugin-page-register2.c
index 1e8368c47..7bd409dcc 100644
--- a/gnucash/gnome/gnc-plugin-page-register2.c
+++ b/gnucash/gnome/gnc-plugin-page-register2.c
@@ -1495,7 +1495,7 @@ gnc_plugin_page_register2_recreate_page (GtkWidget *window,
acct_name = g_key_file_get_string (key_file, group_name,
KEY_ACCOUNT_NAME, &error);
book = qof_session_get_book (gnc_get_current_session());
- if (book)
+ if (!book)
{
LEAVE("Session has no book");
return NULL;
Summary of changes:
gnucash/gnome/gnc-plugin-page-register.c | 2 +-
gnucash/gnome/gnc-plugin-page-register2.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list