From b0eec33720762a106369019f53eff449cfc94a8c Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 23 Nov 2009 22:40:59 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index bfbe8d2605..c17fa83adc 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; }