From 028a7798481221a7236c2d0f19cc739ebd26eb67 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 25 Jun 2012 21:37:25 +0100 Subject: [PATCH] Increase comments per page to 20 --- src/preview/PreviewModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preview/PreviewModel.cpp b/src/preview/PreviewModel.cpp index 3066ac304..1de8b4e81 100644 --- a/src/preview/PreviewModel.cpp +++ b/src/preview/PreviewModel.cpp @@ -61,7 +61,7 @@ void * PreviewModel::updateSaveDataT() void * PreviewModel::updateSaveCommentsT() { - std::vector * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*10, 10); + std::vector * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*20, 20); updateSaveCommentsFinished = true; return tempComments; } @@ -142,7 +142,7 @@ int PreviewModel::GetCommentsPageNum() int PreviewModel::GetCommentsPageCount() { - return max(1, (int)(ceil(commentsTotal/10))); + return max(1, (int)(ceil(commentsTotal/20))); } bool PreviewModel::GetCommentsLoaded()