You've already forked lazarus-ccr
tvplanit: Double-click on GanttView initialized the event editor with a single-day, all-day event.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8556 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -895,12 +895,13 @@ begin
|
||||
if dt <> NO_DATE then
|
||||
begin
|
||||
startTime := DatePart(dt);
|
||||
endTime := startTime + 1.0;
|
||||
endTime := startTime + 1.0 - OneSecond;
|
||||
ActiveEvent := Datastore.Resource.Schedule.AddEvent(
|
||||
Datastore.GetNextID(EventsTableName),
|
||||
startTime,
|
||||
endTime
|
||||
);
|
||||
FActiveEvent.AllDayEvent := true;
|
||||
SpawnEventEditDialog(True);
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user