From b2137a65ded0afffb396118ab2404598101e9d33 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Sat, 23 Oct 2010 18:35:13 +0000 Subject: [PATCH] validate version control status after buffer save or save-as git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXVC.cpp | 1 + src/frontends/qt4/GuiView.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/LyXVC.cpp b/src/LyXVC.cpp index 741abf9854..1306a1d87c 100644 --- a/src/LyXVC.cpp +++ b/src/LyXVC.cpp @@ -68,6 +68,7 @@ bool LyXVC::file_found_hook(FileName const & fn) } // file is not under any VCS. + vcs.reset(0); return false; } diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 99962e2a36..7d289034c6 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2280,6 +2280,10 @@ bool GuiView::saveBuffer(Buffer & b) if (b.save()) { theSession().lastFiles().add(b.fileName()); + // validate version control data and + // correct buffer title + b.lyxvc().file_found_hook(b.fileName()); + b.updateTitles(); return true; } -- 2.39.2