Fix prev, next buttons in Stamps browser. #141

This commit is contained in:
Simon Robertshaw 2012-08-24 11:59:26 +01:00
parent b7328e03ac
commit a28121b166
2 changed files with 5 additions and 5 deletions

View File

@ -102,14 +102,14 @@ void LocalBrowserController::ClearSelection()
void LocalBrowserController::NextPage()
{
if(browserModel->GetPageNum()>1)
browserModel->UpdateSavesList(browserModel->GetPageNum()-1);
if(browserModel->GetPageNum() < browserModel->GetPageCount())
browserModel->UpdateSavesList(browserModel->GetPageNum()+1);
}
void LocalBrowserController::PrevPage()
{
if(browserModel->GetPageNum() <= browserModel->GetPageCount())
browserModel->UpdateSavesList(browserModel->GetPageNum()+1);
if(browserModel->GetPageNum()>1)
browserModel->UpdateSavesList(browserModel->GetPageNum()-1);
}
void LocalBrowserController::Update()

View File

@ -188,7 +188,7 @@ void LocalBrowserView::OnMouseWheel(int x, int y, int d)
{
if(!d)
return;
if(d>0)
if(d<0)
c->NextPage();
else
c->PrevPage();