mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fixed typo in filename creation and added fallback to en_US version.
This commit is contained in:
parent
267ee0de1e
commit
08fb95e432
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user