Fix problem caused by re-ordering of menu at 5f6332bf4.

This broke the activation and de-activation of plural, capitalize,
etc. I guess that tells us how much those get used....

(cherry picked from commit 9b3f9cc687)
This commit is contained in:
Richard Kimberly Heck 2019-01-06 12:51:02 -05:00
parent 5bcb0ca6d8
commit 6ac69a78f8
3 changed files with 5 additions and 1 deletions

View File

@ -150,9 +150,11 @@ void GuiRef::enableBoxes()
{ {
bool const isFormatted = bool const isFormatted =
(InsetRef::getName(typeCO->currentIndex()) == "formatted"); (InsetRef::getName(typeCO->currentIndex()) == "formatted");
LYXERR0(InsetRef::getName(typeCO->currentIndex()));
bool const isLabelOnly = bool const isLabelOnly =
(InsetRef::getName(typeCO->currentIndex()) == "labelonly"); (InsetRef::getName(typeCO->currentIndex()) == "labelonly");
bool const usingRefStyle = buffer().params().use_refstyle; bool const usingRefStyle = buffer().params().use_refstyle;
LYXERR0(usingRefStyle);
pluralCB->setEnabled(isFormatted && usingRefStyle); pluralCB->setEnabled(isFormatted && usingRefStyle);
capsCB->setEnabled(isFormatted && usingRefStyle); capsCB->setEnabled(isFormatted && usingRefStyle);
noprefixCB->setEnabled(isLabelOnly); noprefixCB->setEnabled(isLabelOnly);

View File

@ -476,8 +476,8 @@ InsetRef::type_info const InsetRef::types[] = {
{ "pageref", N_("Page Number"), N_("Page: ")}, { "pageref", N_("Page Number"), N_("Page: ")},
{ "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, { "vpageref", N_("Textual Page Number"), N_("TextPage: ")},
{ "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")},
{ "formatted", N_("Formatted"), N_("Format: ")},
{ "nameref", N_("Reference to Name"), N_("NameRef: ")}, { "nameref", N_("Reference to Name"), N_("NameRef: ")},
{ "formatted", N_("Formatted"), N_("Format: ")},
{ "labelonly", N_("Label Only"), N_("Label: ")}, { "labelonly", N_("Label Only"), N_("Label: ")},
{ "", "", "" } { "", "", "" }
}; };

View File

@ -123,6 +123,8 @@ What's new
- Only allow toggling math limits when it makes sense. - Only allow toggling math limits when it makes sense.
- Repair (de)activation of plural, capitalize, etc, for refstyle.
* INTERNALS * INTERNALS