typo fix edd7efd95 book->!book bail out

This commit is contained in:
Christopher Lam 2020-07-11 12:48:46 +08:00
parent ae04d6715c
commit 58a08a0125
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;