Fix a bug : Don't add operation if amount not set
This commit is contained in:
parent
f0e0aba4f3
commit
20be059f27
|
@ -1008,7 +1008,8 @@ void GridAccount::OnOperationModified(int row, int col)
|
|||
op_complete--;
|
||||
new_op.formula = _displayedOperations[row].formula;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
value = item(row, CREDIT)->text();
|
||||
if (value.length())
|
||||
{
|
||||
|
@ -1021,6 +1022,10 @@ void GridAccount::OnOperationModified(int row, int col)
|
|||
op_complete--;
|
||||
new_op.formula = _displayedOperations[row].formula;
|
||||
}
|
||||
else
|
||||
// Don't add operation if amount not set
|
||||
op_complete += 100;
|
||||
}
|
||||
|
||||
value = item(row, CATEGORY)->text();
|
||||
if (value.length())
|
||||
|
|
Loading…
Reference in New Issue
Block a user