Look for Qt online-help file also in FILESDIR (#2844)

This commit is contained in:
Wolfgang Stöggl 2020-10-11 03:49:27 +02:00 committed by GitHub
parent 2fda1646d9
commit df9f6f38be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ static QString getHelpFile()
<< datadir
<< (QApplication::applicationDirPath() + "/help")
<< QApplication::applicationDirPath();
#ifdef FILESDIR
const QString filesdir = FILESDIR;
paths << (filesdir + "/help")
<< filesdir;
#endif
for (QString p: paths) {
QString filename = p + "/online-help.qhc";
if (QFileInfo(filename).exists())