]> git.lyx.org Git - features.git/commitdiff
Find thesauri files even if \thesaurusdir_path is specified without
authorEnrico Forestieri <forenr@lyx.org>
Sun, 10 May 2009 02:25:25 +0000 (02:25 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 10 May 2009 02:25:25 +0000 (02:25 +0000)
a trailing slash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29603 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index 07af66d8734fad4e94b723803f31513653730e88..bb99d1788ff63b19f6258fa9f97b0480628288a4 100644 (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;