From 0d80d91a479b9169f5df8967f9c95b346506a659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 17 Feb 2013 19:11:38 +0100 Subject: [PATCH] Fix a bug : Group a non checked operation with a checked meta did not uncheck meta --- ChangeLog | 1 + src/view/grid/GridAccount.cpp | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7d8f45..28725f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ v0.4 (17/02/2013) When user changes month or year in SearchBanner, A new date wasn't selected by default resulting in bad SQL query Date in search failed in january File was not truncated during export + Group a non checked operation with a checked meta did not uncheck meta v0.3 (31/05/2012) diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index 0cc2a98..33e403e 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -1298,10 +1298,19 @@ void GridAccount::Group() row = InsertIntoGrid(op); + if (fullCheck) + { + op.checked = true; + CheckOperation(op, row, true, false); + } + else + { + op.checked = false; + CheckOperation(op, row, false, false); + } + UpdateMeta(op); - if (fullCheck) - CheckMeta(op, row, true); } void GridAccount::GetSelectedOperations(std::vector* rows)