tvplanit: Fix incorrect closing of weekview's inplace editor in MouseClick.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4772 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-06-18 23:31:19 +00:00
parent 1e89c2e60f
commit ea72a7a350

View File

@ -1353,7 +1353,7 @@ begin
if not Focused then SetFocus;
if wvInPlaceEditor <> nil then
if (wvInPlaceEditor <> nil) and wvInPlaceEditor.Visible then
EndEdit(Self);
if (Msg.YPos > wvHeaderHeight) then
@ -1902,7 +1902,8 @@ end;
procedure TVpWeekView.EndEdit(Sender: TObject);
begin
if (wvInPlaceEditor <> nil) and (ActiveEvent <> nil) then begin
if (wvInPlaceEditor <> nil) and wvInplaceEditor.Visible and (ActiveEvent <> nil)
then begin
if wvInPlaceEditor.Text <> ActiveEvent.Description then begin
ActiveEvent.Description := wvInPlaceEditor.Text;
ActiveEvent.Changed := true;