summaryrefslogtreecommitdiff
path: root/topicmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'topicmodel.cpp')
-rw-r--r--topicmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/topicmodel.cpp b/topicmodel.cpp
index 4188784..36fc4c0 100644
--- a/topicmodel.cpp
+++ b/topicmodel.cpp
@@ -281,11 +281,11 @@ QList<TopicModel::Post> 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));
}