From: <gua...@us...> - 2013-10-06 05:45:23
|
Revision: 4737 http://sourceforge.net/p/moneymanagerex/code/4737 Author: guanlisheng Date: 2013-10-06 05:45:17 +0000 (Sun, 06 Oct 2013) Log Message: ----------- cleanup categoryList_ Modified Paths: -------------- trunk/src/import_export/export.cpp Modified: trunk/src/import_export/export.cpp =================================================================== --- trunk/src/import_export/export.cpp 2013-10-06 05:28:43 UTC (rev 4736) +++ trunk/src/import_export/export.cpp 2013-10-06 05:45:17 UTC (rev 4737) @@ -81,8 +81,9 @@ if (transaction->transType_ == "Withdrawal") value = -value; const wxString split_amount = wxString()<<value; - const wxString split_categ = core_->categoryList_.GetFullCategoryString( - split_entry->categID_, split_entry->subCategID_); + const Model_Category::Data* category = Model_Category::instance().get(split_entry->categID_); + const Model_Subcategory::Data* sub_category = Model_Subcategory::instance().get(split_entry->subCategID_); + const wxString split_categ = Model_Category::full_name(category, sub_category); buffer << "S" << split_categ << "\n" << "$" << split_amount << "\n"; } @@ -130,8 +131,9 @@ value = -value; const wxString split_amount = wxString()<<value; - const wxString split_categ = core_->categoryList_.GetFullCategoryString( - split_entry->categID_, split_entry->subCategID_); + const Model_Category::Data* category = Model_Category::instance().get(split_entry->categID_); + const Model_Subcategory::Data* sub_category = Model_Subcategory::instance().get(split_entry->subCategID_); + const wxString split_categ = Model_Category::full_name(category, sub_category); buffer << trans_id << delimit << inQuotes(accountName, delimit) << delimit This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |