diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-08-16 00:22:32 +0300 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2018-08-17 00:58:01 +0200 |
commit | 7cf05897a2c4ecccdfda2a3967b947f38441c5b6 (patch) | |
tree | 449cfe1549912e18032347d9a67e54c9cd0e59c7 /core/divelogexportlogic.cpp | |
parent | da4ced9bdf51fe12ba43b223e6b977d908106637 (diff) | |
download | subsurface-7cf05897a2c4ecccdfda2a3967b947f38441c5b6.tar.gz |
divelogexportlogic: show warning on missing 'theme' folder
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
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(); |