From b73000a4955eea0f38daf1291975ac366e1f768d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 22 Aug 2024 08:17:33 +0200 Subject: [PATCH] The InsetPrintNomenclature settings make no sense with nomentbl --- src/insets/InsetNomencl.cpp | 6 ++++++ src/insets/InsetNomencl.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } /// -- 2.39.5