]> git.lyx.org Git - lyx.git/commitdiff
The InsetPrintNomenclature settings make no sense with nomentbl
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 22 Aug 2024 06:17:33 +0000 (08:17 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 22 Aug 2024 06:17:33 +0000 (08:17 +0200)
src/insets/InsetNomencl.cpp
src/insets/InsetNomencl.h

index d694a166b74e726b2bf42a43907b80fbbe5cf7d0..484d731abee23cd4310f133521a4dcb0a7fd81c9 100644 (file)
@@ -507,4 +507,10 @@ string InsetPrintNomencl::contextMenuName() const
 }
 
 
+bool InsetPrintNomencl::hasSettings() const
+{
+       return !contains(buffer().params().nomencl_opts, "nomentbl");
+}
+
+
 } // namespace lyx
index 47ff626e0bcec0613d0bab0ad0cde35b0ae44cd5..47b9049269a1cf537613b4004be99bb4fdeb0425 100644 (file)
@@ -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; }
        ///