]> git.lyx.org Git - features.git/commitdiff
Do not save an emergency file after choosing to revert the document to the version...
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 23 Nov 2009 22:40:59 +0000 (22:40 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 23 Nov 2009 22:40:59 +0000 (22:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32170 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index bfbe8d2605236b59e3e393ab9b0db75f6b9f5bc4..c17fa83adc9b4ac0da5d799f144d25186cca9798 100644 (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;
                }