[LyX/master] Unbreak GuiTabular::fucEnabled()
Juergen Spitzmueller
spitz at lyx.org
Wed Aug 14 14:29:42 UTC 2024
commit 6b0c243cda6a540907ded6d5298ae3fb23836a6d
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Wed Aug 14 16:27:20 2024 +0200
Unbreak GuiTabular::fucEnabled()
I wonder how long this has been broken (if it ever worked)
---
src/frontends/qt/GuiTabular.cpp | 2 +-
src/insets/InsetTabular.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiTabular.cpp b/src/frontends/qt/GuiTabular.cpp
index 21772ebc6f..5c32edc7d4 100644
--- a/src/frontends/qt/GuiTabular.cpp
+++ b/src/frontends/qt/GuiTabular.cpp
@@ -1278,7 +1278,7 @@ bool GuiTabular::checkWidgets(bool readonly) const
bool GuiTabular::funcEnabled(Tabular::Feature f) const
{
- FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog" + featureAsString(f));
+ FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog " + featureAsString(f));
return getStatus(r).enabled();
}
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 6f1b470ea7..aa07a69add 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -5378,7 +5378,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_INSET_MODIFY:
// we come from the dialog
- if (cmd.getArg(0) == "tabular")
+ if (cmd.getArg(0) == "tabular" && cmd.getArg(1) != "for-dialog")
tabularFeatures(cur, cmd.getLongArg(1));
else
cur.undispatched();
More information about the lyx-cvs
mailing list