Better fix for previous bug
This commit is contained in:
parent
c0c5a090f6
commit
e6ca15f5f3
|
@ -662,9 +662,8 @@ bool Database::LoadOperation(User* user, const wxString& id)
|
|||
op.formula = set.GetAsString(wxT("formula"));
|
||||
op.meta = set.GetBool(wxT("meta"));
|
||||
|
||||
if (!user->_operations[op.year])
|
||||
user->_operations[op.year] = new std::map<unsigned int, std::vector<Operation> >();
|
||||
|
||||
if (user->_operations[op.year])
|
||||
{
|
||||
for (it = (*user->_operations[op.year])[op.month].begin();
|
||||
it != (*user->_operations[op.year])[op.month].end();
|
||||
it++)
|
||||
|
@ -690,6 +689,7 @@ bool Database::LoadOperation(User* user, const wxString& id)
|
|||
// (*user->_operations[op.year])[op.month].push_back(op);
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
||||
set.Finalize();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user