divelogexportlogic: show warning on missing 'theme' folder

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2018-08-16 00:22:32 +03:00 committed by bstoeger
parent da4ced9bdf
commit 7cf05897a2

View file

@ -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();