]> git.lyx.org Git - lyx.git/commitdiff
Generate previews after buffer reload and clean up old ones from cache.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 28 Mar 2010 22:41:37 +0000 (22:41 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 28 Mar 2010 22:41:37 +0000 (22:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33901 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 7317ac20714feed43ffb18c67819043eea438f78..1a47fdf5bded72eaab8c0524a35b35b7518cd508 100644 (file)
@@ -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;
 }