mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't unregister the event handler twice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9381 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -448,7 +448,10 @@ gnc_account_sel_dispose (GObject *object)
|
||||
|
||||
gas = GNC_ACCOUNT_SEL (object);
|
||||
|
||||
gnc_engine_unregister_event_handler (gas->eventHandlerId);
|
||||
if (gas->eventHandlerId) {
|
||||
gnc_engine_unregister_event_handler (gas->eventHandlerId);
|
||||
gas->eventHandlerId = 0;
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user