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
Itinerary
Commits
5e4ec393
Commit
5e4ec393
authored
Sep 17, 2021
by
Volker Krause
Browse files
Don't trigger the connection warning when there is no previous arrival time
parent
4762c9ca
Changes
1
Show whitespace changes
Inline
Side-by-side
src/app/timelinedelegatecontroller.cpp
View file @
5e4ec393
...
@@ -531,7 +531,11 @@ bool TimelineDelegateController::connectionWarning() const
...
@@ -531,7 +531,11 @@ bool TimelineDelegateController::connectionWarning() const
const
auto
prevArrDt
=
std
::
max
(
SortUtil
::
endDateTime
(
prevRes
),
prevArr
.
expectedArrivalTime
());
const
auto
prevArrDt
=
std
::
max
(
SortUtil
::
endDateTime
(
prevRes
),
prevArr
.
expectedArrivalTime
());
const
auto
curDepDt
=
std
::
max
(
SortUtil
::
startDateTime
(
curRes
),
departure
().
expectedDepartureTime
());
const
auto
curDepDt
=
std
::
max
(
SortUtil
::
startDateTime
(
curRes
),
departure
().
expectedDepartureTime
());
if
(
curDepDt
.
isValid
()
&&
prevArrDt
.
isValid
())
{
return
curDepDt
<
prevArrDt
;
return
curDepDt
<
prevArrDt
;
}
return
false
;
}
}
bool
TimelineDelegateController
::
isCanceled
()
const
bool
TimelineDelegateController
::
isCanceled
()
const
...
...
Write
Preview
Markdown
is supported
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