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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32170 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-23 22:40:59 +00:00
parent 3e77106ff8
commit b0eec33720

View File

@ -2563,8 +2563,10 @@ bool GuiView::dispatch(FuncRequest const & cmd)
int const ret = Alert::prompt(_("Revert to saved document?"),
text, 1, 1, _("&Revert"), _("&Cancel"));
if (ret == 0)
if (ret == 0) {
doc_buffer->markClean();
reloadBuffer();
}
break;
}