Move to tristate version of locking property

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30265 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-06-26 12:25:51 +00:00
parent 8f3ee7c3a4
commit b627182bb4

View File

@ -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();