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
This commit is contained in:
Enrico Forestieri 2009-05-10 02:25:25 +00:00
parent a52cac0476
commit aa1a673077

View File

@ -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;