fix being able to go one page too far in searches with the scroll wheel
This commit is contained in:
parent
864f0e6f45
commit
4bcaf7f385
@ -128,7 +128,7 @@ void SearchController::PrevPage()
|
|||||||
|
|
||||||
void SearchController::NextPage()
|
void SearchController::NextPage()
|
||||||
{
|
{
|
||||||
if(searchModel->GetPageNum() <= searchModel->GetPageCount())
|
if(searchModel->GetPageNum() < searchModel->GetPageCount())
|
||||||
searchModel->UpdateSaveList(searchModel->GetPageNum()+1, searchModel->GetLastQuery());
|
searchModel->UpdateSaveList(searchModel->GetPageNum()+1, searchModel->GetLastQuery());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ void SearchView::NotifyPageChanged(SearchModel * sender)
|
|||||||
{
|
{
|
||||||
previousButton->Visible = true;
|
previousButton->Visible = true;
|
||||||
}
|
}
|
||||||
if(sender->GetPageNum() == sender->GetPageCount())
|
if(sender->GetPageNum() >= sender->GetPageCount())
|
||||||
{
|
{
|
||||||
nextButton->Visible = false;
|
nextButton->Visible = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user