]> git.lyx.org Git - lyx.git/commit
Use real path names for buffer lookup by name of temporary external files.
authorStephan Witt <switt@lyx.org>
Sat, 22 Feb 2020 11:11:42 +0000 (12:11 +0100)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 7 Jan 2021 17:08:36 +0000 (12:08 -0500)
commitf7dfb8eb0c1dcd395247ad0bde72f52dabc69b69
tree8dd7362c07f47ad770a00b3b36399bf0d9b63539
parente3ccca67e7b93b0deb6f2441c3392b9365cc335c
Use real path names for buffer lookup by name of temporary external files.

In case of path names for external files containing symbolic links the real path
and the logical path name may be different for the same file or directory.
LyX is using QDir::tempPath() to create the path name of the temporary directory.
The Qt implementation is free to return the logical or the real path name here and
it happens to be different for various platforms and versions.
The most stable and clean solution is to use the real path name consistently.

(cherry picked from commit f2f861f017bd598c9e5b72f64e10587cbe1e3405)
development/MacOSX/lyxeditor
src/BufferList.cpp
src/BufferList.h
src/frontends/qt4/GuiView.cpp