From: Juergen Spitzmueller Date: Wed, 14 Aug 2024 14:27:20 +0000 (+0200) Subject: Unbreak GuiTabular::fucEnabled() X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6b0c243cda6a540907ded6d5298ae3fb23836a6d;p=lyx.git Unbreak GuiTabular::fucEnabled() I wonder how long this has been broken (if it ever worked) --- 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();