From 5d0fbe9d97845b787c036b59dd051b1661c6acfc Mon Sep 17 00:00:00 2001 From: David Llewellyn-Jones Date: Sun, 27 Jun 2021 20:54:58 +0300 Subject: [PATCH] Ensure end time is calculated correctly --- src/journey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.25.1