HaikuDepot: fix screenshot window toolbar

* Next-button was disabled too early
This commit is contained in:
Julian Harnath 2017-11-27 21:21:03 +00:00
parent 4824497d01
commit 47e34fcb8a

View File

@ -297,7 +297,7 @@ ScreenshotWindow::_UpdateToolBar()
fToolBar->SetActionEnabled(MSG_PREVIOUS_SCREENSHOT,
currentIndex > 0);
fToolBar->SetActionEnabled(MSG_NEXT_SCREENSHOT,
currentIndex < fNumScreenshots - 2);
currentIndex < fNumScreenshots - 1);
BString text;
text << currentIndex + 1;