From b627182bb480dbe963858d46824acc6e1082e118 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 26 Jun 2009 12:25:51 +0000 Subject: [PATCH] Move to tristate version of locking property git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30265 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 2b8356a25f..d359b888b1 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -473,6 +473,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const break; case LFUN_VC_LOCKING_TOGGLE: enable = !buf->isReadonly() && buf->lyxvc().lockingToggleEnabled(); + flag.setEnabled(enable); + if (enable) + flag.setOnOff(!buf->lyxvc().locker().empty()); break; case LFUN_VC_REVERT: enable = buf->lyxvc().inUse();