Merge branch 'bugfixes' of github.com:danilocesar/subsurface

Fixed one conflict in qt-ui/diveplanner.cpp - please check I got this
right.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-08-30 20:17:20 -07:00
commit db17edda65
5 changed files with 56 additions and 9 deletions

View file

@ -15,7 +15,7 @@
#include <QCloseEvent>
#include <QApplication>
#include <QFontMetrics>
#include <QTextBrowser>
#include <QWebView>
#include <QTableView>
#include "divelistview.h"
#include "starwidget.h"
@ -413,14 +413,14 @@ void MainWindow::on_actionAboutSubsurface_triggered()
void MainWindow::on_actionUserManual_triggered()
{
if(!helpView){
helpView = new QTextBrowser();
helpView = new QWebView();
}
QString searchPath = getSubsurfaceDataPath("Documentation");
if (searchPath != "") {
QUrl url(searchPath.append("/user-manual.html"));
helpView->setSource(url);
helpView->setUrl(url);
} else {
helpView->setText(tr("Cannot find the Subsurface manual"));
helpView->setHtml(tr("Cannot find the Subsurface manual"));
}
helpView->show();
}