summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-06 21:23:27 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-06 21:23:27 +0200
commitf53ed1cdf47fbc44f7e8d2677e9020192e0c9d85 (patch)
treebf47b572e788bac1c89928761057d26adb803794
parentb0886b317fd6de5fa960392b2a8a0dbb557475f5 (diff)
downloadtapasboard-f53ed1cdf47fbc44f7e8d2677e9020192e0c9d85.tar.gz
tapasboard-f53ed1cdf47fbc44f7e8d2677e9020192e0c9d85.zip
fix small issue
-rw-r--r--forummodel.cpp2
-rw-r--r--topicmodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/forummodel.cpp b/forummodel.cpp
index aecb8c2..3167769 100644
--- a/forummodel.cpp
+++ b/forummodel.cpp
@@ -127,7 +127,7 @@ void ForumModel::fetchMore(const QModelIndex &parent)
// If the topics we got from DB are too old, refresh online.
if (last.secsTo(QDateTime::currentDateTimeUtc()) > FORUM_TOPICS_TLL) {
qDebug() << "Fetching topics because of old";
- Q_ASSERT(new_end > 0);
+ Q_ASSERT(new_end >= 0);
_board->enqueueAction(new FetchTopicsAction(_forumId,
start,
new_end,
diff --git a/topicmodel.cpp b/topicmodel.cpp
index 65d3e4b..c7932aa 100644
--- a/topicmodel.cpp
+++ b/topicmodel.cpp
@@ -174,7 +174,7 @@ void TopicModel::fetchMore(const QModelIndex &parent)
// If the posts we got from DB are too old, refresh online.
if (last.secsTo(QDateTime::currentDateTimeUtc()) > TOPIC_POSTS_TLL) {
qDebug() << "Fetching posts because of old";
- Q_ASSERT(new_end > 0);
+ Q_ASSERT(new_end >= 0);
_board->enqueueAction(new FetchPostsAction(_topicId,
start,
new_end,