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:
Richard Heck 2010-10-21 18:25:15 +00:00
parent 74c8cfc5f5
commit 1f87b2ef5d

View File

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