[LyX/2.4.x] Unbreak GuiTabular::fucEnabled()
Juergen Spitzmueller
spitz at lyx.org
Thu Aug 15 05:32:31 UTC 2024
commit 7d309d08fde32c830b9aced319d78ca2887b7672
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)
(cherry picked from commit 6b0c243cda6a540907ded6d5298ae3fb23836a6d)
---
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 5a67154ee0..2365d2e1be 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -5370,7 +5370,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