Correctly test QString for being empty

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-08 07:53:22 -07:00
parent 901bfb5455
commit 439c2e0473

View file

@ -81,10 +81,8 @@ void DiveLogExportDialog::exportHtmlInit(QString filename)
export_HTML(json_dive_data.toUtf8().data(), ui->exportSelectedDives->isChecked()); export_HTML(json_dive_data.toUtf8().data(), ui->exportSelectedDives->isChecked());
QString searchPath = getSubsurfaceDataPath("theme"); QString searchPath = getSubsurfaceDataPath("theme");
if (searchPath.isEmpty())
if (searchPath == "") { return;
return;
}
QFile *tmpFile; QFile *tmpFile;