mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
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:
parent
b6cd31e99a
commit
7d309d08fd
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user