diff options
| author | 2014-06-08 07:53:22 -0700 | |
|---|---|---|
| committer | 2014-06-08 07:53:22 -0700 | |
| commit | 439c2e0473d85302e94487f3e244ddc792cdf1a5 (patch) | |
| tree | 168485a22b1c77a37388d36d10a02c0c3ced88e0 /qt-ui | |
| parent | 901bfb5455972e6d53687f7b85066d50c5766a36 (diff) | |
| download | subsurface-439c2e0473d85302e94487f3e244ddc792cdf1a5.tar.gz | |
Correctly test QString for being empty
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
| -rw-r--r-- | qt-ui/divelogexportdialog.cpp | 6 |
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; |