summaryrefslogtreecommitdiffstats
path: root/src/bm/bmrequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bm/bmrequest.cpp')
-rw-r--r--src/bm/bmrequest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bm/bmrequest.cpp b/src/bm/bmrequest.cpp
index e9aac8f..9300dc3 100644
--- a/src/bm/bmrequest.cpp
+++ b/src/bm/bmrequest.cpp
@@ -5371,8 +5371,10 @@ void BMRequest_IndexGetValues::handleReply_HTML(const QStringList &args) const
// *** Meta information (characterizing the results) ***
reply += "\n<br /><br /><table>\n";
- const int baseTimestamp = argsElem.attributeNode("baseTimestamp").value().toInt(&ok);
+ int baseTimestamp = argsElem.attributeNode("baseTimestamp").value().toInt(&ok);
Q_ASSERT(ok);
+ if (baseTimestamp < 0)
+ baseTimestamp = timestamps.last();
dateTime.setTime_t(baseTimestamp);
reply += QString("<tr><td>Base time:</td><td>%1 (%2)</td></tr>\n")
.arg(baseTimestamp)