diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-07 18:52:23 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-07 18:52:23 +0200 |
commit | eaf95f0c22b50c599c5713166fba03c1c13ff644 (patch) | |
tree | f582a7fa0341b754379a3d037198957d44c364a8 /topicmodel.cpp | |
parent | 0a3f6f27868a6eaa15d27cfe5be303292737b562 (diff) | |
download | tapasboard-eaf95f0c22b50c599c5713166fba03c1c13ff644.tar.gz tapasboard-eaf95f0c22b50c599c5713166fba03c1c13ff644.zip |
refresh topics also when viewing outdated ones
Diffstat (limited to 'topicmodel.cpp')
-rw-r--r-- | topicmodel.cpp | 6 |
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)); } |