From 439c2e0473d85302e94487f3e244ddc792cdf1a5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 8 Jun 2014 07:53:22 -0700 Subject: Correctly test QString for being empty Signed-off-by: Dirk Hohndel --- qt-ui/divelogexportdialog.cpp | 6 ++---- 1 file 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; -- cgit v1.2.3-70-g09d2