Bug 720564 - Search in General Ledger

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.
This commit is contained in:
Robert Fewell 2020-11-22 10:35:32 +00:00
parent 562b4be220
commit ae39df07eb

View File

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