From 8c5fab48f240d6788fdbca756adc4eef744c031f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 18 Jun 2011 11:43:02 +0200 Subject: [PATCH] Fix a bug (d\'ont check date for auto completion) --- src/view/grid/GridAccount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/grid/GridAccount.cpp b/src/view/grid/GridAccount.cpp index 34c65b6..7cff7d9 100644 --- a/src/view/grid/GridAccount.cpp +++ b/src/view/grid/GridAccount.cpp @@ -728,7 +728,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event) op_complete--; } - if (col == DESCRIPTION && + if (col == DESCRIPTION && GetCellValue(row, OP_DATE).Length() && (!GetCellValue(row, CATEGORY).Length() || !GetCellValue(row, ACCOUNT).Length() || !_canAddOperation))