mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 17:59:49 +02:00
fix being able to go one page too far in searches with the scroll wheel
This commit is contained in:
@@ -128,7 +128,7 @@ void SearchController::PrevPage()
|
||||
|
||||
void SearchController::NextPage()
|
||||
{
|
||||
if(searchModel->GetPageNum() <= searchModel->GetPageCount())
|
||||
if(searchModel->GetPageNum() < searchModel->GetPageCount())
|
||||
searchModel->UpdateSaveList(searchModel->GetPageNum()+1, searchModel->GetLastQuery());
|
||||
}
|
||||
|
||||
|
@@ -340,7 +340,7 @@ void SearchView::NotifyPageChanged(SearchModel * sender)
|
||||
{
|
||||
previousButton->Visible = true;
|
||||
}
|
||||
if(sender->GetPageNum() == sender->GetPageCount())
|
||||
if(sender->GetPageNum() >= sender->GetPageCount())
|
||||
{
|
||||
nextButton->Visible = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user