Unbreak GuiTabular::fucEnabled()

I wonder how long this has been broken (if it ever worked)

(cherry picked from commit 6b0c243cda)
This commit is contained in:
Juergen Spitzmueller 2024-08-14 16:27:20 +02:00
parent b6cd31e99a
commit 7d309d08fd
2 changed files with 2 additions and 2 deletions

View File

@ -1278,7 +1278,7 @@ bool GuiTabular::checkWidgets(bool readonly) const
bool GuiTabular::funcEnabled(Tabular::Feature f) 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(); return getStatus(r).enabled();
} }

View File

@ -5370,7 +5370,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_INSET_MODIFY: case LFUN_INSET_MODIFY:
// we come from the dialog // 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)); tabularFeatures(cur, cmd.getLongArg(1));
else else
cur.undispatched(); cur.undispatched();