You've already forked lazarus-ccr
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:
@ -1353,7 +1353,7 @@ begin
|
|||||||
|
|
||||||
if not Focused then SetFocus;
|
if not Focused then SetFocus;
|
||||||
|
|
||||||
if wvInPlaceEditor <> nil then
|
if (wvInPlaceEditor <> nil) and wvInPlaceEditor.Visible then
|
||||||
EndEdit(Self);
|
EndEdit(Self);
|
||||||
|
|
||||||
if (Msg.YPos > wvHeaderHeight) then
|
if (Msg.YPos > wvHeaderHeight) then
|
||||||
@ -1902,7 +1902,8 @@ end;
|
|||||||
|
|
||||||
procedure TVpWeekView.EndEdit(Sender: TObject);
|
procedure TVpWeekView.EndEdit(Sender: TObject);
|
||||||
begin
|
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
|
if wvInPlaceEditor.Text <> ActiveEvent.Description then begin
|
||||||
ActiveEvent.Description := wvInPlaceEditor.Text;
|
ActiveEvent.Description := wvInPlaceEditor.Text;
|
||||||
ActiveEvent.Changed := true;
|
ActiveEvent.Changed := true;
|
||||||
|
Reference in New Issue
Block a user