On Sun, May 10, 2009 at 04:25:29AM +0200, for...@lyx.org wrote: > Author: forenr > Date: Sun May 10 04:25:25 2009 > New Revision: 29603 > URL: http://www.lyx.org/trac/changeset/29603 > > Log: > Find thesauri files even if \thesaurusdir_path is specified without > a trailing slash.
Jürgen, this is also needed in branch. I don't know what else bug this may have caused. I see that dirList() is also used in Converters::move(). > Modified: > lyx-devel/trunk/src/support/FileName.cpp > > Modified: lyx-devel/trunk/src/support/FileName.cpp > ============================================================================== > --- lyx-devel/trunk/src/support/FileName.cpp Sun May 10 02:03:14 2009 > (r29602) > +++ lyx-devel/trunk/src/support/FileName.cpp Sun May 10 04:25:25 2009 > (r29603) > @@ -407,7 +407,9 @@ > 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; > -- Enrico