]> git.lyx.org Git - features.git/commitdiff
Fix problem caused by re-ordering of menu at 5f6332bf4.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Jan 2019 17:51:02 +0000 (12:51 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Jan 2019 17:52:44 +0000 (12:52 -0500)
This broke the activation and de-activation of plural, capitalize,
etc. I guess that tells us how much those get used....

src/frontends/qt4/GuiRef.cpp
src/insets/InsetRef.cpp

index 5d46a471c710bb980c0c062085c8f3a480d405b5..cb6b37608fb30db2c0acf86f579eef4dd5e595b7 100644 (file)
@@ -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);
index 75fce643bbb54c02fc5da5560cecc00052b140a8..4767f7b653a3f22d434abcd3a7676478f5d82ad8 100644 (file)
@@ -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: ")},
        { "", "", "" }
 };