Fix a regression : meta description always updated to first child description
This commit is contained in:
parent
2ec5e124da
commit
fb2541358c
|
@ -1081,7 +1081,7 @@ void GridAccount::OnOperationModified(int row, int col)
|
||||||
if (new_op.parent)
|
if (new_op.parent)
|
||||||
{
|
{
|
||||||
parent = GetOperation(new_op.parent);
|
parent = GetOperation(new_op.parent);
|
||||||
UpdateMeta(parent);
|
UpdateMeta(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
_kiss->UpdateStats();
|
_kiss->UpdateStats();
|
||||||
|
@ -1108,7 +1108,6 @@ void GridAccount::UpdateMeta(Operation& meta)
|
||||||
meta.year = op.year;
|
meta.year = op.year;
|
||||||
meta.month = op.month;
|
meta.month = op.month;
|
||||||
meta.day = op.day;
|
meta.day = op.day;
|
||||||
meta.description = "";
|
|
||||||
|
|
||||||
for(it=meta.childs.begin(); it!=meta.childs.end(); it++)
|
for(it=meta.childs.begin(); it!=meta.childs.end(); it++)
|
||||||
{
|
{
|
||||||
|
@ -1119,7 +1118,7 @@ void GridAccount::UpdateMeta(Operation& meta)
|
||||||
meta.month = op.month;
|
meta.month = op.month;
|
||||||
meta.day = op.day;
|
meta.day = op.day;
|
||||||
}
|
}
|
||||||
if (!meta.description.length() && op.description.length())
|
if (meta.description.length() == 0)
|
||||||
meta.description = op.description;
|
meta.description = op.description;
|
||||||
if (!category)
|
if (!category)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue