Fix a bug : NULLop was set with random values which can cause misunderstanding when entering a new operation

This commit is contained in:
Grégory Soutadé 2018-09-15 18:06:26 +02:00
parent cb67de5ba5
commit 10c534857d

View File

@ -199,7 +199,19 @@ void GridAccount::LoadOperations(std::vector<Operation>* operations, int month,
QStringList list;
NULLop.id = 0;
NULLop.parent = 0;
NULLop.amount = 0.0;
NULLop.description = "";
NULLop.category = 0;
NULLop.tag = 0;
NULLop.fix_cost = false;
NULLop.account = 0;
NULLop.checked = 0;
NULLop.transfert = 0;
NULLop.formula = "";
NULLop.meta = false;
NULLop._virtual = false;
_loadOperations = true;
_operations = operations;
_curMonth = month;