Fix HTML export white space issues

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-06-03 20:53:43 +03:00 committed by Dirk Hohndel
parent 197bd76f16
commit a89533bf37

View file

@ -15,7 +15,7 @@
#include "helpers.h" #include "helpers.h"
DiveLogExportDialog::DiveLogExportDialog(QWidget *parent) : QDialog(parent), DiveLogExportDialog::DiveLogExportDialog(QWidget *parent) : QDialog(parent),
ui(new Ui::DiveLogExportDialog) ui(new Ui::DiveLogExportDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
showExplanation(); showExplanation();
@ -83,7 +83,7 @@ void DiveLogExportDialog::exportHtmlInit(QString filename)
QString searchPath = getSubsurfaceDataPath("theme"); QString searchPath = getSubsurfaceDataPath("theme");
if (searchPath == "") { if (searchPath == "") {
return ; return;
} }
QFile *tmpFile; QFile *tmpFile;
@ -179,7 +179,7 @@ void DiveLogExportDialog::on_buttonBox_accepted()
break; break;
case 1: case 1:
filename = QFileDialog::getSaveFileName(this, tr("Export Subsurface"), lastDir, filename = QFileDialog::getSaveFileName(this, tr("Export Subsurface"), lastDir,
tr("Folders"),0 , QFileDialog::ShowDirsOnly); tr("Folders"), 0, QFileDialog::ShowDirsOnly);
if (!filename.isNull() && !filename.isEmpty()) if (!filename.isNull() && !filename.isEmpty())
exportHtmlInit(filename); exportHtmlInit(filename);
break; break;