]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
grammar
[lyx.git] / src / LyXVC.cpp
index 32d617f08bbc96095faec3727847d4da0b949484..c7040a84c98a8c0239ee73112784cf9cc3d10d2e 100644 (file)
@@ -91,7 +91,7 @@ void LyXVC::setBuffer(Buffer * buf)
 }
 
 
-void LyXVC::registrer()
+bool LyXVC::registrer()
 {
        FileName const filename = owner_->fileName();
 
@@ -100,7 +100,7 @@ void LyXVC::registrer()
                Alert::error(_("Document not saved"),
                             _("You must save the document "
                                            "before it can be registered."));
-               return;
+               return false;
        }
 
        // it is very likely here that the vcs is not created yet...
@@ -134,11 +134,12 @@ void LyXVC::registrer()
                        _("(no initial description)"));
        if (!ok) {
                LYXERR(Debug::LYXVC, "LyXVC: user cancelled");
-               return;
+               return false;
        }
        if (response.empty())
                response = _("(no initial description)");
        vcs->registrer(to_utf8(response));
+       return true;
 }
 
 
@@ -205,6 +206,8 @@ void LyXVC::toggleReadOnly()
                LYXERR(Debug::LYXVC, "LyXVC: toggle to unlocked");
                checkIn();
                break;
+       case VCS::NOLOCKING:
+               break;
        }
 }