Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
7e0e6691
Commit
7e0e6691
authored
Oct 13, 2019
by
Volker Krause
Browse files
Better end time default for restaurant reservations without an end time
CCBUG: 404451
parent
0f8b2bab
Changes
1
Show whitespace changes
Inline
Side-by-side
src/calendarhandler.cpp
View file @
7e0e6691
...
...
@@ -379,7 +379,7 @@ static void fillFoodReservation(const FoodEstablishmentReservation &reservation,
event
->
setDtStart
(
reservation
.
startTime
());
auto
endTime
=
reservation
.
endTime
();
if
(
!
endTime
.
isValid
())
{
endTime
=
QDateTime
(
reservation
.
startTime
().
date
(),
QTime
(
23
,
59
,
59
));
endTime
=
reservation
.
startTime
().
addSecs
(
7200
);
// if we have no end time, let's assume 2h
}
event
->
setDtEnd
(
endTime
);
event
->
setAllDay
(
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment