]> git.lyx.org Git - features.git/commitdiff
RCS: commit undo allowed only in unlocked state.
authorPavel Sanda <sanda@lyx.org>
Wed, 10 Jan 2018 09:47:48 +0000 (10:47 +0100)
committerPavel Sanda <sanda@lyx.org>
Thu, 11 Jan 2018 22:47:41 +0000 (23:47 +0100)
src/VCBackend.cpp

index edbf096e75ef6e1401114fac7f5360d2d1c63b68..957c69f585b48890ed38fdcfa1730da82f1dbf4c 100644 (file)
@@ -392,7 +392,7 @@ void RCS::undoLast()
 
 bool RCS::undoLastEnabled()
 {
-       return true;
+       return owner_->hasReadonlyFlag();
 }