ReadOnly mode only for RCS

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25793 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-07-22 10:16:12 +00:00
parent 63bc0678bc
commit d4b9c97555

View File

@ -159,6 +159,9 @@ void LyXVC::checkIn()
void LyXVC::checkOut()
{
//RCS allows checkOut only in ReadOnly mode
if (vcs->toggleReadOnlyEnabled() && !owner_->isReadonly()) return;
LYXERR(Debug::LYXVC, "LyXVC: checkOut");
vcs->checkOut();
}