Fix a bug : Group a non checked operation with a checked meta did not uncheck meta

This commit is contained in:
Grégory Soutadé 2013-02-17 19:11:38 +01:00
parent e0efe42b14
commit 0d80d91a47
2 changed files with 12 additions and 2 deletions

View File

@ -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 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 Date in search failed in january
File was not truncated during export File was not truncated during export
Group a non checked operation with a checked meta did not uncheck meta
v0.3 (31/05/2012) v0.3 (31/05/2012)

View File

@ -1298,10 +1298,19 @@ void GridAccount::Group()
row = InsertIntoGrid(op); row = InsertIntoGrid(op);
if (fullCheck)
{
op.checked = true;
CheckOperation(op, row, true, false);
}
else
{
op.checked = false;
CheckOperation(op, row, false, false);
}
UpdateMeta(op); UpdateMeta(op);
if (fullCheck)
CheckMeta(op, row, true);
} }
void GridAccount::GetSelectedOperations(std::vector<int>* rows) void GridAccount::GetSelectedOperations(std::vector<int>* rows)