From 08fb95e432d520126f7bc80dfd4b8f4b2b0fb915 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sat, 6 Apr 2019 07:17:35 -0400 Subject: [PATCH] Fixed typo in filename creation and added fallback to en_US version. --- oscar/aboutdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oscar/aboutdialog.cpp b/oscar/aboutdialog.cpp index 1943dec5..312b4c89 100644 --- a/oscar/aboutdialog.cpp +++ b/oscar/aboutdialog.cpp @@ -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;