mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3352 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f2269e6bdc
commit
59f32d3455
@ -113,16 +113,13 @@ gnc_ui_commodity_druid_create(const char * filename) {
|
||||
d->is_modal = FALSE;
|
||||
|
||||
gtk_object_set_data(dobj, "commodity_druid_struct", (gpointer)d);
|
||||
|
||||
|
||||
d->new_map = g_hash_table_new(g_str_hash, g_str_equal);
|
||||
d->old_map = g_hash_table_new(g_str_hash, g_str_equal);
|
||||
orphans =
|
||||
gnc_commodity_table_get_commodities(gnc_engine_commodities(),
|
||||
GNC_COMMODITY_NS_LEGACY);
|
||||
|
||||
gnc_commodity_table_delete_namespace(gnc_engine_commodities(),
|
||||
GNC_COMMODITY_NS_LEGACY);
|
||||
|
||||
|
||||
/* make a new list with the (saved) old mnemonic and the
|
||||
* new currency. */
|
||||
for(l=orphans; l; l=l->next) {
|
||||
@ -422,8 +419,12 @@ gnc_ui_commodity_druid_finish_cb(GnomeDruidPage * page, gpointer druid,
|
||||
* replace the account commodity pointers */
|
||||
g_hash_table_foreach(cd->new_map, &finish_helper, (gpointer)cd);
|
||||
|
||||
gnc_commodity_table_delete_namespace(gnc_engine_commodities(),
|
||||
GNC_COMMODITY_NS_LEGACY);
|
||||
|
||||
/* destroy the dialog */
|
||||
gnc_ui_commodity_druid_destroy(cd);
|
||||
|
||||
gnc_refresh_main_window();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user