We need remove autosave on reload now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33994 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-03-31 21:29:32 +00:00
parent c942233de3
commit 348991cd71

View File

@ -3930,6 +3930,8 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
bool Buffer::reload() bool Buffer::reload()
{ {
setBusy(true); setBusy(true);
// c.f. bug 6587
removeAutosaveFile();
// e.g., read-only status could have changed due to version control // e.g., read-only status could have changed due to version control
d->filename.refresh(); d->filename.refresh();
docstring const disp_fn = makeDisplayPath(d->filename.absFilename()); docstring const disp_fn = makeDisplayPath(d->filename.absFilename());