From f53ed1cdf47fbc44f7e8d2677e9020192e0c9d85 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 6 Apr 2013 21:23:27 +0200 Subject: fix small issue --- forummodel.cpp | 2 +- topicmodel.cpp | 2 +- 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, -- cgit v1.2.3