mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
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:
parent
8f3ee7c3a4
commit
b627182bb4
@ -473,6 +473,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
|||||||
break;
|
break;
|
||||||
case LFUN_VC_LOCKING_TOGGLE:
|
case LFUN_VC_LOCKING_TOGGLE:
|
||||||
enable = !buf->isReadonly() && buf->lyxvc().lockingToggleEnabled();
|
enable = !buf->isReadonly() && buf->lyxvc().lockingToggleEnabled();
|
||||||
|
flag.setEnabled(enable);
|
||||||
|
if (enable)
|
||||||
|
flag.setOnOff(!buf->lyxvc().locker().empty());
|
||||||
break;
|
break;
|
||||||
case LFUN_VC_REVERT:
|
case LFUN_VC_REVERT:
|
||||||
enable = buf->lyxvc().inUse();
|
enable = buf->lyxvc().inUse();
|
||||||
|
Loading…
Reference in New Issue
Block a user