summaryrefslogtreecommitdiff
path: root/src/gui/search/SearchView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-13 16:51:25 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-13 16:51:25 (GMT)
commit4bcaf7f3856c202c808e94da1b68206360d5d0ac (patch)
tree4d5d44ae6176ea1343847715a0af9069456c8dba /src/gui/search/SearchView.cpp
parent864f0e6f4528e9cf4ecf225dd655c29a77de171e (diff)
downloadpowder-4bcaf7f3856c202c808e94da1b68206360d5d0ac.zip
powder-4bcaf7f3856c202c808e94da1b68206360d5d0ac.tar.gz
fix being able to go one page too far in searches with the scroll wheel
Diffstat (limited to 'src/gui/search/SearchView.cpp')
-rw-r--r--src/gui/search/SearchView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/search/SearchView.cpp b/src/gui/search/SearchView.cpp
index 902be77..cfa1a3b 100644
--- a/src/gui/search/SearchView.cpp
+++ b/src/gui/search/SearchView.cpp
@@ -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;
}