divelogexportlogic: show warning on missing 'theme' folder
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
da4ced9bdf
commit
7cf05897a2
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user