From c4e0ff6435073050ab22a8683840465cbe7b1269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 3 Jan 2022 23:21:55 +0100 Subject: [PATCH] Ignore invalid dates fixes #416 --- src/data/twonavparser.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/data/twonavparser.cpp b/src/data/twonavparser.cpp index 1b41ffe3..88f77907 100644 --- a/src/data/twonavparser.cpp +++ b/src/data/twonavparser.cpp @@ -138,11 +138,8 @@ bool TwoNavParser::parse(QFile *file, QList &tracks, if (list.size() > 5) { QDateTime ts(timestamp(list.at(4), list.at(5))); - if (!ts.isValid()) { - _errorString = "Invalid date/time"; - return false; - } - t.setTimestamp(ts); + if (ts.isValid()) + t.setTimestamp(ts); } if (list.size() > 7) { qreal elevation = list.at(7).toDouble(&ok);