mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Unbreak GuiTabular::fucEnabled()
I wonder how long this has been broken (if it ever worked)
This commit is contained in:
parent
c08e07513d
commit
6b0c243cda
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5378,7 +5378,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();
|
||||||
|
Loading…
Reference in New Issue
Block a user