mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Correctly clean up when closing a register. The register/window
mapping is no longer 1-1. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9243 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -903,8 +903,10 @@ gnc_split_reg_ld_destroy( GNCLedgerDisplay *ledger )
|
||||
if (reg && reg->table)
|
||||
gnc_table_save_state (reg->table);
|
||||
|
||||
gtk_widget_hide_all( gsr->window );
|
||||
gtk_widget_destroy( gsr->window );
|
||||
/*
|
||||
* Don't destroy the window here any more. The register no longer
|
||||
* owns it.
|
||||
*/
|
||||
}
|
||||
gnc_ledger_display_set_user_data (ledger, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user