mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Correctly test QString for being empty
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
901bfb5455
commit
439c2e0473
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue