mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
typo fix edd7efd95
book->!book bail out
This commit is contained in:
parent
ae04d6715c
commit
58a08a0125
@ -1816,7 +1816,7 @@ gnc_plugin_page_register_recreate_page (GtkWidget* window,
|
|||||||
include_subs = (g_ascii_strcasecmp (reg_type, LABEL_SUBACCOUNT) == 0);
|
include_subs = (g_ascii_strcasecmp (reg_type, LABEL_SUBACCOUNT) == 0);
|
||||||
DEBUG ("Include subs: %d", include_subs);
|
DEBUG ("Include subs: %d", include_subs);
|
||||||
book = qof_session_get_book (gnc_get_current_session());
|
book = qof_session_get_book (gnc_get_current_session());
|
||||||
if (book)
|
if (!book)
|
||||||
{
|
{
|
||||||
LEAVE("Session has no book");
|
LEAVE("Session has no book");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -1495,7 +1495,7 @@ gnc_plugin_page_register2_recreate_page (GtkWidget *window,
|
|||||||
acct_name = g_key_file_get_string (key_file, group_name,
|
acct_name = g_key_file_get_string (key_file, group_name,
|
||||||
KEY_ACCOUNT_NAME, &error);
|
KEY_ACCOUNT_NAME, &error);
|
||||||
book = qof_session_get_book (gnc_get_current_session());
|
book = qof_session_get_book (gnc_get_current_session());
|
||||||
if (book)
|
if (!book)
|
||||||
{
|
{
|
||||||
LEAVE("Session has no book");
|
LEAVE("Session has no book");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user