mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -148,8 +148,10 @@ void exportHtmlInitLogic(const QString &filename, struct htmlExportSetting &hes)
|
||||||
export_HTML(qPrintable(json_dive_data), qPrintable(photosDirectory), hes.selectedOnly, hes.listOnly);
|
export_HTML(qPrintable(json_dive_data), qPrintable(photosDirectory), hes.selectedOnly, hes.listOnly);
|
||||||
|
|
||||||
QString searchPath = getSubsurfaceDataPath("theme");
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
searchPath += QDir::separator();
|
searchPath += QDir::separator();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue