]> git.lyx.org Git - features.git/blobdiff - src/LyXVC.cpp
toggleReadOnly belongs only to RCS, not CVS.
[features.git] / src / LyXVC.cpp
index 1ed30fe66376da1d2348ef1916c9154b41817f0a..808ae2b50f216ba6fb28e44eac446e950e11f012 100644 (file)
@@ -188,6 +188,9 @@ void LyXVC::undoLast()
 
 void LyXVC::toggleReadOnly()
 {
+       if (!vcs->toggleReadOnlyEnabled())
+               return;
+
        switch (vcs->status()) {
        case VCS::UNLOCKED:
                LYXERR(Debug::LYXVC, "LyXVC: toggle to locked");