mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 16:38:06 -06:00
Bug 799429 - Crash when changing accounting period end date
Remove the accounting period changed callbacks at GncPluginPage destruction so that the destroyed page isn't called in the new session.
This commit is contained in:
parent
c63d2dcf6d
commit
fef0124e45
@ -754,7 +754,20 @@ gnc_plugin_page_account_tree_destroy_widget (GncPluginPage *plugin_page)
|
||||
(gpointer)gnc_plugin_page_account_tree_summarybar_position_changed,
|
||||
page);
|
||||
|
||||
// Save account filter state information to account section
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_START_CHOICE_ABS,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_START_DATE,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_START_PERIOD,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_END_CHOICE_ABS,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_END_DATE,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_END_PERIOD,
|
||||
(gpointer)accounting_period_changed_cb, page);
|
||||
|
||||
// Save account filter state information to account section
|
||||
gnc_tree_view_account_save_filter (GNC_TREE_VIEW_ACCOUNT(priv->tree_view), &priv->fd,
|
||||
gnc_state_get_current(), gnc_tree_view_get_state_section (GNC_TREE_VIEW(priv->tree_view)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user