Add blocked account (mainly for statistics)

Really fix the previous bug
This commit is contained in:
2010-11-01 11:34:39 +01:00
parent 7af9f1d9c2
commit 0832e020c4
11 changed files with 220 additions and 130 deletions

View File

@@ -102,6 +102,14 @@ const wxFont User::GetCategoryFont(wxString& catId)
return f;
}
Account User::GetAccount(const wxString& accountId)
{
std::vector<Account>::iterator it;
for (it=_accounts.begin(); it !=_accounts.end(); it++)
if (it->id == accountId)
return *it;
}
wxString User::GetAccountName(const wxString& accountId)
{
std::vector<Account>::iterator it;