summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2010-04-30 14:04:55 +0200
committerjasplin <qt-info@nokia.com>2010-04-30 14:04:55 +0200
commit987673cab99f1bbbea98b7df3fe3a207110390b4 (patch)
tree78431ac77f42426333bce1e69af80b11eb96f65a /src
parentf90eac58576986f0b5bb568dbc394484e157949c (diff)
Fixed bug: Negative base time should map to last contributor time everywhere.
Diffstat (limited to 'src')
-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)