From: Vincent van Ravesteijn Date: Mon, 23 Nov 2009 22:40:59 +0000 (+0000) Subject: Do not save an emergency file after choosing to revert the document to the version... X-Git-Tag: 2.0.0~5035 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b0eec33720762a106369019f53eff449cfc94a8c;p=features.git 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 --- 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; }