From 7cf05897a2c4ecccdfda2a3967b947f38441c5b6 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 16 Aug 2018 00:22:32 +0300 Subject: divelogexportlogic: show warning on missing 'theme' folder Signed-off-by: Lubomir I. Ivanov --- core/divelogexportlogic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/divelogexportlogic.cpp') 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(); -- cgit v1.2.3-70-g09d2