Commit cbdf6a17 authored by Matthias Möller's avatar Matthias Möller

fix: first side is no more Backward Available

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14397 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 65b06885
......@@ -55,12 +55,11 @@ HelpBrowser::HelpBrowser(QHelpEngine* _helpEngine, QWidget* parent) :
QTextBrowser(parent),
helpEngine_(_helpEngine),
currentPage_(0),
currentVirtualFolder_(""),
currentNameSpace_("")
{
currentPage_ = 0;
}
HelpBrowser::~HelpBrowser() {
......@@ -197,14 +196,14 @@ bool HelpBrowser::isForwardAvailable() {
bool HelpBrowser::isBackwardAvailable() {
return currentPage_ > 0;
return currentPage_ > 1;
}
void HelpBrowser::backward() {
if(isBackwardAvailable()) {
currentPage_--;
open(visitedPages_[currentPage_], true);
open(visitedPages_[currentPage_-1], true);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment