Skip to content

Commit

Permalink
Bug 720564 - Search in General Ledger
Browse files Browse the repository at this point in the history
If you search from a General Ledger the search results will update the
General Ledger and the only way to get back the contents is to close
and reopen the General Ledger.

This change makes it the same as any other register in that the search
results are opened in a new search page.
  • Loading branch information
Bob-IT committed Nov 22, 2020
1 parent 562b4be commit ae39df0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnucash/register/ledger-core/gnc-ledger-display.c
Expand Up @@ -184,6 +184,9 @@ find_by_query (gpointer find_data, gpointer user_data)
Query* q = find_data;
GNCLedgerDisplay* ld = user_data;

if (ld->reg->type != SEARCH_LEDGER)
return FALSE;

if (!q || !ld)
return FALSE;

Expand Down

0 comments on commit ae39df0

Please sign in to comment.