Unbreak GuiTabular::fucEnabled()

I wonder how long this has been broken (if it ever worked)
This commit is contained in:
Juergen Spitzmueller 2024-08-14 16:27:20 +02:00
parent c08e07513d
commit 6b0c243cda
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
{
FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog" + featureAsString(f));
FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog " + featureAsString(f));
return getStatus(r).enabled();
}

View File

@ -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();