diff options
Diffstat (limited to 'core/divelogexportlogic.cpp')
-rw-r--r-- | core/divelogexportlogic.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/divelogexportlogic.cpp b/core/divelogexportlogic.cpp index 82c8b452f..cb700e79a 100644 --- a/core/divelogexportlogic.cpp +++ b/core/divelogexportlogic.cpp @@ -148,8 +148,10 @@ void exportHtmlInitLogic(const QString &filename, struct htmlExportSetting &hes) export_HTML(qPrintable(json_dive_data), qPrintable(photosDirectory), hes.selectedOnly, hes.listOnly); QString searchPath = getSubsurfaceDataPath("theme"); - if (searchPath.isEmpty()) + if (searchPath.isEmpty()) { + report_error(qPrintable(gettextFromC::tr("Cannot find a folder called 'theme' in the standard locations"))); return; + } searchPath += QDir::separator(); |