Increase comments per page to 20

This commit is contained in:
Simon Robertshaw
2012-06-25 21:37:25 +01:00
parent 44e41a3b28
commit 028a779848

View File

@@ -61,7 +61,7 @@ void * PreviewModel::updateSaveDataT()
void * PreviewModel::updateSaveCommentsT() void * PreviewModel::updateSaveCommentsT()
{ {
std::vector<SaveComment*> * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*10, 10); std::vector<SaveComment*> * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*20, 20);
updateSaveCommentsFinished = true; updateSaveCommentsFinished = true;
return tempComments; return tempComments;
} }
@@ -142,7 +142,7 @@ int PreviewModel::GetCommentsPageNum()
int PreviewModel::GetCommentsPageCount() int PreviewModel::GetCommentsPageCount()
{ {
return max(1, (int)(ceil(commentsTotal/10))); return max(1, (int)(ceil(commentsTotal/20)));
} }
bool PreviewModel::GetCommentsLoaded() bool PreviewModel::GetCommentsLoaded()