commit 97d3b73e9ac98730abe6ccb21a307a17ce42cdf1
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Apr 4 08:24:25 2019 +0200
Disable TABLUAR_STYLE_INSERT with TABULAR_INSERT
---
src/insets/InsetScript.cpp | 1 +
src/insets/InsetTabular.cpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetScript.cpp b/src/insets/InsetScript.cpp
index c7bdd42..f87f6c4 100644
--- a/src/insets/InsetScript.cpp
+++ b/src/insets/InsetScript.cpp
@@ -281,6 +281,7 @@ bool InsetScript::getStatus(Cursor & cur, FuncRequest const
& cmd,
case LFUN_PREVIEW_INSERT:
case LFUN_QUOTE_INSERT:
case LFUN_TABULAR_INSERT:
+ case LFUN_TABULAR_STYLE_INSERT:
case LFUN_WRAP_INSERT:
flag.setEnabled(false);
return true;
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index d3976fe..9f2ef5e 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -5572,6 +5572,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest
const & cmd,
// disable these with multiple cells selected
case LFUN_INSET_INSERT:
case LFUN_TABULAR_INSERT:
+ case LFUN_TABULAR_STYLE_INSERT:
case LFUN_FLEX_INSERT:
case LFUN_FLOAT_INSERT:
case LFUN_FLOAT_WIDE_INSERT: