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
@ -120,9 +120,6 @@ gnc_ui_commodity_druid_create(const char * filename) {
|
|||||||
gnc_commodity_table_get_commodities(gnc_engine_commodities(),
|
gnc_commodity_table_get_commodities(gnc_engine_commodities(),
|
||||||
GNC_COMMODITY_NS_LEGACY);
|
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
|
/* make a new list with the (saved) old mnemonic and the
|
||||||
* new currency. */
|
* new currency. */
|
||||||
for(l=orphans; l; l=l->next) {
|
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 */
|
* replace the account commodity pointers */
|
||||||
g_hash_table_foreach(cd->new_map, &finish_helper, (gpointer)cd);
|
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 */
|
/* destroy the dialog */
|
||||||
gnc_ui_commodity_druid_destroy(cd);
|
gnc_ui_commodity_druid_destroy(cd);
|
||||||
|
|
||||||
gnc_refresh_main_window();
|
gnc_refresh_main_window();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user