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
This commit is contained in:
Vincent van Ravesteijn 2010-03-28 22:41:37 +00:00
parent e73c866edf
commit ba22be24b4

View 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;
}