From: David Llewellyn-Jones Date: Sun, 27 Jun 2021 17:54:58 +0000 (+0300) Subject: Ensure end time is calculated correctly X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=commitdiff_plain;h=5d0fbe9d97845b787c036b59dd051b1661c6acfc Ensure end time is calculated correctly --- diff --git a/src/journey.cpp b/src/journey.cpp index 775ece7..198d4ba 100644 --- a/src/journey.cpp +++ b/src/journey.cpp @@ -39,7 +39,7 @@ QTime Journey::getEndTime() const { QDateTime time; time.setMSecsSinceEpoch(start); - time.addSecs(duration); + time = time.addSecs(duration); return time.time(); }