]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
* src/LyXRC.{cpp,h}:
[lyx.git] / src / LyXVC.cpp
index 264bb6f622effaa7aea880d3de8272ba9786c6c7..fca70971f5226fc545f40f835d7a86d26217f686 100644 (file)
@@ -84,7 +84,7 @@ bool LyXVC::file_not_found_hook(FileName const & fn)
 }
 
 
-void LyXVC::buffer(Buffer * buf)
+void LyXVC::setBuffer(Buffer * buf)
 {
        owner_ = buf;
 }
@@ -92,7 +92,7 @@ void LyXVC::buffer(Buffer * buf)
 
 void LyXVC::registrer()
 {
-       FileName const filename(owner_->fileName());
+       FileName const filename(owner_->absFileName());
 
        // there must be a file to save
        if (!filename.isFileReadable()) {
@@ -166,7 +166,7 @@ void LyXVC::revert()
 {
        LYXERR(Debug::LYXVC) << "LyXVC: revert" << endl;
 
-       docstring const file = makeDisplayPath(owner_->fileName(), 20);
+       docstring const file = makeDisplayPath(owner_->absFileName(), 20);
        docstring text = bformat(_("Reverting to the stored version of the "
                "document %1$s will lose all current changes.\n\n"
                                             "Do you want to revert to the saved version?"), file);
@@ -201,7 +201,8 @@ void LyXVC::toggleReadOnly()
 
 bool LyXVC::inUse()
 {
-       if (vcs) return true;
+       if (vcs)
+               return true;
        return false;
 }
 
@@ -211,6 +212,7 @@ bool LyXVC::inUse()
 //     return vcs->version();
 //}
 
+
 string const LyXVC::versionString() const
 {
        return vcs->versionString();