Do not save an emergency file after choosing to revert the document to the version saved on disk.

Now also when the user tries to load the document when it's already loaded.

see r32170.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-12 01:18:18 +00:00
parent c7dfe186fb
commit e89a267c71

View File

@ -75,6 +75,7 @@ Buffer * checkAndLoadLyXFile(FileName const & filename, bool const acceptDirty)
return checkBuffer;
// FIXME: should be LFUN_REVERT
checkBuffer->markClean();
theBufferList().release(checkBuffer);
// Load it again.
return checkAndLoadLyXFile(filename);