Fixed typo in filename creation and added fallback to en_US version.

This commit is contained in:
Phil Olynyk 2019-04-06 07:17:35 -04:00
parent 267ee0de1e
commit 08fb95e432

View File

@ -75,7 +75,9 @@ QString AboutDialog::getFilename(QString name)
filename = ":docs/"+name+".html";
} else {
QString docRoot = appResourcePath() + "/Html/";
filename = docRoot + name + language + "/Html/";
filename = docRoot + name + "-" + language + ".html";
if ( ! QFile::exists(filename) )
filename = ":docs/"+name+".html";
}
qDebug() << "Looking for " + filename;
return filename;