tvplanit: Fix duplicate storage of contacts (hopefully..). Remove unnecessary code from event editor.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5179 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-09-18 16:32:15 +00:00
parent 9b1bdfb9c9
commit 6a1b6b86de
2 changed files with 4 additions and 1 deletions

View File

@ -954,9 +954,12 @@ begin
DataStore.GetNextID(ContactsTableName));
if ceContact <> nil then begin
Result := Execute(ceContact);
if not Result then
(*
if Result then
DataStore.PostContacts
else
*)
ceContact.Free;
end;
end;

View File

@ -859,7 +859,7 @@ begin
);
if ceEvent <> nil then begin
Result := Execute(ceEvent);
if (not Result) or (ceEvent = nil) then
if (not Result) then
ceEvent.Free;
end;
end;