From 10c534857d09b3cca6241711aba93ddc5c704509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 15 Sep 2018 18:06:26 +0200 Subject: [PATCH] Fix a bug : NULLop was set with random values which can cause misunderstanding when entering a new operation --- src/view/grid/GridAccount.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index ed55f25..4d10ad2 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -199,7 +199,19 @@ void GridAccount::LoadOperations(std::vector* 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;