From: Enrico Forestieri Date: Sun, 10 May 2009 02:25:25 +0000 (+0000) Subject: Find thesauri files even if \thesaurusdir_path is specified without X-Git-Tag: 2.0.0~6621 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aa1a673077d87b3c9178cda760785996d9a57ed6;p=features.git Find thesauri files even if \thesaurusdir_path is specified without a trailing slash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29603 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 07af66d873..bb99d1788f 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -407,7 +407,9 @@ FileNameList FileName::dirList(string const & ext) const return dirlist; } - QDir dir = d->fi.absoluteDir(); + // If the directory is specified without a trailing '/', absoluteDir() + // would return the parent dir, so we must use absoluteFilePath() here. + QDir dir = d->fi.absoluteFilePath(); if (!ext.empty()) { QString filter;