From ba22be24b4252c149594c82f4c5fd9805d590690 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 28 Mar 2010 22:41:37 +0000 Subject: [PATCH] Generate previews after buffer reload and clean up old ones from cache. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33901 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 7317ac2071..1a47fdf5bd 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3928,6 +3928,9 @@ bool Buffer::reload() message(bformat(_("Could not reload document %1$s."), disp_fn)); } setBusy(false); + thePreviews().removeLoader(*this); + if (graphics::Previews::status() != LyXRC::PREVIEW_OFF) + thePreviews().generateBufferPreviews(*this); errors("Parse"); return success; } -- 2.39.2