From aa1a673077d87b3c9178cda760785996d9a57ed6 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 10 May 2009 02:25:25 +0000 Subject: [PATCH] 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 --- src/support/FileName.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2