aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 07:53:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 07:53:22 -0700
commit439c2e0473d85302e94487f3e244ddc792cdf1a5 (patch)
tree168485a22b1c77a37388d36d10a02c0c3ced88e0 /qt-ui/divelogexportdialog.cpp
parent901bfb5455972e6d53687f7b85066d50c5766a36 (diff)
downloadsubsurface-439c2e0473d85302e94487f3e244ddc792cdf1a5.tar.gz
Correctly test QString for being empty
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index f73a1ca51..602d45035 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -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;