Fix error when options dialogue is open when app closed

With the options dialogue open when Gnucash is closed this error is
logged in the trace file, gnc_close_gui_component() component not found.

This is fixed by reversing the components list found for session so the
options dialogue is closed before the report window.
This commit is contained in:
Robert Fewell 2018-07-22 12:55:55 +01:00
parent 5c90f677e5
commit 64778fcad5

View File

@ -827,6 +827,9 @@ gnc_close_gui_component_by_session (gpointer session)
list = find_components_by_session (session);
// reverse the list so class like dialog-options close before window-report
list = g_list_reverse (list);
for (node = list; node; node = node->next)
{
ComponentInfo *ci = node->data;