]> git.lyx.org Git - features.git/commit
Refresh file cache before checking existence
authorScott Kostyshak <skostysh@lyx.org>
Wed, 19 Aug 2015 01:55:59 +0000 (21:55 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 19 Aug 2015 02:03:59 +0000 (22:03 -0400)
commit43ca05ead4f7ea9b4fefe9888333fada4ae2d404
treea590c291eb79963c62f630e8db42418d7209379b
parent488ce900e00e3b13ec9adaa636f3f8fb63a2f77b
Refresh file cache before checking existence

This is done only inside LFUN_BUFFER_VIEW_CACHE so as to preserve
the benefits of caching in other places.

Without this commit, if a converter or a user (re)moves the preview
file and then calls buffer-view-cache LyX will launch the viewer for
a file that does not exist.

For a discussion and use case, see:
https://www.mail-archive.com/search?l=mid&q=55D393D7.6050403@lyx.org
src/Buffer.cpp