mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
5c90f677e5
commit
64778fcad5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user