mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
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:
parent
c7dfe186fb
commit
e89a267c71
@ -75,6 +75,7 @@ Buffer * checkAndLoadLyXFile(FileName const & filename, bool const acceptDirty)
|
|||||||
return checkBuffer;
|
return checkBuffer;
|
||||||
|
|
||||||
// FIXME: should be LFUN_REVERT
|
// FIXME: should be LFUN_REVERT
|
||||||
|
checkBuffer->markClean();
|
||||||
theBufferList().release(checkBuffer);
|
theBufferList().release(checkBuffer);
|
||||||
// Load it again.
|
// Load it again.
|
||||||
return checkAndLoadLyXFile(filename);
|
return checkAndLoadLyXFile(filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user