From: Juergen Spitzmueller Date: Thu, 22 Aug 2024 06:17:33 +0000 (+0200) Subject: The InsetPrintNomenclature settings make no sense with nomentbl X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b73000a4955eea0f38daf1291975ac366e1f768d;p=lyx.git The InsetPrintNomenclature settings make no sense with nomentbl --- diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index d694a166b7..484d731abe 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -507,4 +507,10 @@ string InsetPrintNomencl::contextMenuName() const } +bool InsetPrintNomencl::hasSettings() const +{ + return !contains(buffer().params().nomencl_opts, "nomentbl"); +} + + } // namespace lyx diff --git a/src/insets/InsetNomencl.h b/src/insets/InsetNomencl.h index 47ff626e0b..47b9049269 100644 --- a/src/insets/InsetNomencl.h +++ b/src/insets/InsetNomencl.h @@ -91,7 +91,7 @@ public: /// InsetCode lyxCode() const override; /// - bool hasSettings() const override { return true; } + bool hasSettings() const override; /// int rowFlags() const override { return Display; } ///