mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Restore should, uh, restore the initial state. Other half of #6964.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35760 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
74c8cfc5f5
commit
1f87b2ef5d
@ -398,6 +398,7 @@ void ButtonPolicy::Private::initNoRepeatedApplyReadOnly()
|
||||
state_machine_[INITIAL][SMI_VALID] = VALID;
|
||||
state_machine_[INITIAL][SMI_INVALID] = INVALID;
|
||||
state_machine_[INITIAL][SMI_READ_ONLY] = RO_INITIAL;
|
||||
state_machine_[INITIAL][SMI_RESTORE] = INITIAL;
|
||||
// State::VALID
|
||||
state_machine_[VALID][SMI_VALID] = VALID;
|
||||
state_machine_[VALID][SMI_READ_WRITE] = VALID;
|
||||
@ -419,6 +420,7 @@ void ButtonPolicy::Private::initNoRepeatedApplyReadOnly()
|
||||
state_machine_[RO_INITIAL][SMI_VALID] = RO_VALID;
|
||||
state_machine_[RO_INITIAL][SMI_INVALID] = RO_INVALID;
|
||||
state_machine_[RO_INITIAL][SMI_READ_WRITE] = INITIAL;
|
||||
state_machine_[RO_INITIAL][SMI_RESTORE] = INITIAL;
|
||||
// State::RO_VALID
|
||||
state_machine_[RO_VALID][SMI_VALID] = RO_VALID;
|
||||
state_machine_[RO_VALID][SMI_READ_ONLY] = RO_VALID;
|
||||
|
Loading…
Reference in New Issue
Block a user