From eaf95f0c22b50c599c5713166fba03c1c13ff644 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 7 Apr 2013 18:52:23 +0200 Subject: refresh topics also when viewing outdated ones --- topicmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'topicmodel.cpp') diff --git a/topicmodel.cpp b/topicmodel.cpp index 4188784..36fc4c0 100644 --- a/topicmodel.cpp +++ b/topicmodel.cpp @@ -281,11 +281,11 @@ QList TopicModel::loadPosts(int start, int end) void TopicModel::fetchPost(int position) const { if (_board->service()->isAccessible()) { - // There are lest posts on the DB than we wanted + // There are less posts on the DB than we wanted qDebug() << "Fetching post" << position << "because of unfetched"; // Always fetch one page at least. - int start = (position / FORUM_PAGE_SIZE) * FORUM_PAGE_SIZE; - int end = (start + FORUM_PAGE_SIZE) - 1; + int start = (position / TOPIC_PAGE_SIZE) * TOPIC_PAGE_SIZE; + int end = (start + TOPIC_PAGE_SIZE) - 1; qDebug() << "From" << start << "to" << end; _board->enqueueAction(new FetchPostsAction(_topicId, start, end, _board)); } -- cgit v1.2.3