Possibility to work on multiple operations (rename, change category, change account)

New database version (2) :
		fix_cost for categories
		virtual account
This commit is contained in:
2011-02-13 19:30:12 +01:00
parent 142837b59e
commit c03562851a
40 changed files with 682 additions and 268 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2010 Grégory Soutadé
Copyright 2010-2011 Grégory Soutadé
This file is part of KissCount.
@@ -23,6 +23,11 @@ User::User(Database* db) : _db(db)
{}
User::~User()
{
InvalidateOperations();
}
void User::InvalidateOperations()
{
std::map<unsigned int, std::map<unsigned int, std::vector<Operation> >* >::iterator it;
@@ -33,6 +38,8 @@ User::~User()
delete it->second;
}
}
_operations.clear();
}
Category User::GetCategory(const wxString& catId)