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

fix: double loading home page at the beginning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14400 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 57454142
......@@ -202,7 +202,7 @@ bool HelpBrowser::isForwardAvailable() {
bool HelpBrowser::isBackwardAvailable() {
return currentPage_ > 1;
return currentPage_ > 0;
}
void HelpBrowser::backward() {
......
......@@ -57,7 +57,7 @@
#include <QTextStream>
#include <QDir>
HelpWidget::HelpWidget(QWidget* parent, const QString& _homeSite)
HelpWidget::HelpWidget(QWidget* parent, const QString& _homeSite /*=""*/, const bool _loadHomeSite /*= true*/)
: QMainWindow(parent),
searchWidget_(0),
tabWidget_(0),
......@@ -212,8 +212,11 @@ HelpWidget::HelpWidget(QWidget* parent, const QString& _homeSite)
}
#endif
// Load main page
textWindow_->open(QUrl(homeSite_));
if (_loadHomeSite)
{
// Load main page
textWindow_->open(QUrl(homeSite_));
}
}
void HelpWidget::activateLink(const QUrl& _url)
......
......@@ -70,7 +70,7 @@ class HelpWidget : public QMainWindow, public Ui::HelpWidget
public:
HelpWidget(QWidget* parent = 0, const QString& _homeSite = "");
HelpWidget(QWidget* parent = 0, const QString& _homeSite = "", const bool _loadHomeSite = true);
virtual ~HelpWidget();
......
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