diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 15:41:06 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 15:41:06 (GMT) |
| commit | 66fffe649d1d173bcccf2763883bd361ef6cb0ed (patch) | |
| tree | 3e3119770fd7a683fc27ccf58814151d80899c05 /src/search/SearchModel.cpp | |
| parent | b06f7f5b6db540a546f5677c1c8933e168df5e4c (diff) | |
| download | powder-66fffe649d1d173bcccf2763883bd361ef6cb0ed.zip powder-66fffe649d1d173bcccf2763883bd361ef6cb0ed.tar.gz | |
Prevent page count for being all over the place in search
Diffstat (limited to 'src/search/SearchModel.cpp')
| -rw-r--r-- | src/search/SearchModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search/SearchModel.cpp b/src/search/SearchModel.cpp index 63231d7..d05bf1d 100644 --- a/src/search/SearchModel.cpp +++ b/src/search/SearchModel.cpp @@ -36,7 +36,7 @@ void * SearchModel::updateSaveListT() category = "Favourites"; if(showOwn && Client::Ref().GetAuthUser().ID) category = "by:"+Client::Ref().GetAuthUser().Username; - information[0] = Client::Ref().SearchSaves((currentPage-1)*20, 20, lastQuery, currentSort=="new"?"date":"votes", category, resultCount); + information[0] = Client::Ref().SearchSaves((currentPage-1)*20, 20, lastQuery, currentSort=="new"?"date":"votes", category, thResultCount); if(showTags) { @@ -119,6 +119,7 @@ void SearchModel::Update() void ** tempInformation; //vector<SaveInfo*> * tempSaveList; pthread_join(updateSaveListThread, (void**)(&tempInformation)); + resultCount = thResultCount; saveList = *(vector<SaveInfo*>*)tempInformation[0]; delete (vector<SaveInfo*>*)tempInformation[0]; |
