From: Richard Kimberly Heck Date: Sun, 6 Jan 2019 17:51:02 +0000 (-0500) Subject: Fix problem caused by re-ordering of menu at 5f6332bf4. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c7b18a866924ed3446d08faa322204bbf8d4609c;p=features.git 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.... --- diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index 5d46a471c7..cb6b37608f 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -147,9 +147,11 @@ void GuiRef::enableBoxes() { bool const isFormatted = (InsetRef::getName(typeCO->currentIndex()) == "formatted"); + LYXERR0(InsetRef::getName(typeCO->currentIndex())); bool const isLabelOnly = (InsetRef::getName(typeCO->currentIndex()) == "labelonly"); bool const usingRefStyle = buffer().params().use_refstyle; + LYXERR0(usingRefStyle); pluralCB->setEnabled(isFormatted && usingRefStyle); capsCB->setEnabled(isFormatted && usingRefStyle); noprefixCB->setEnabled(isLabelOnly); diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index 75fce643bb..4767f7b653 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -478,8 +478,8 @@ InsetRef::type_info const InsetRef::types[] = { { "pageref", N_("Page Number"), N_("Page: ")}, { "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, - { "formatted", N_("Formatted"), N_("Format: ")}, { "nameref", N_("Reference to Name"), N_("NameRef: ")}, + { "formatted", N_("Formatted"), N_("Format: ")}, { "labelonly", N_("Label Only"), N_("Label: ")}, { "", "", "" } };