]> git.lyx.org Git - features.git/commitdiff
validate version control status after buffer save or save-as
authorStephan Witt <switt@lyx.org>
Sat, 23 Oct 2010 18:35:13 +0000 (18:35 +0000)
committerStephan Witt <switt@lyx.org>
Sat, 23 Oct 2010 18:35:13 +0000 (18:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXVC.cpp
src/frontends/qt4/GuiView.cpp

index 741abf9854b10320942831ee011fe81be3ee0c0d..1306a1d87cf6f2c21ac1b90c75d6f924e05e48ce 100644 (file)
@@ -68,6 +68,7 @@ bool LyXVC::file_found_hook(FileName const & fn)
        }
 
        // file is not under any VCS.
+       vcs.reset(0);
        return false;
 }
 
index 99962e2a3685ba1e36d448352b2991ecfa287d73..7d289034c6394e58181a085362bb9123749d8df4 100644 (file)
@@ -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;
        }