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; }