Correctly test QString for being empty
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
901bfb5455
commit
439c2e0473
@ -81,10 +81,8 @@ void DiveLogExportDialog::exportHtmlInit(QString filename)
|
||||
export_HTML(json_dive_data.toUtf8().data(), ui->exportSelectedDives->isChecked());
|
||||
|
||||
QString searchPath = getSubsurfaceDataPath("theme");
|
||||
|
||||
if (searchPath == "") {
|
||||
return;
|
||||
}
|
||||
if (searchPath.isEmpty())
|
||||
return;
|
||||
|
||||
QFile *tmpFile;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user