docstring GuiTabular::dialogToParams() const
{
// FIXME: We should use Tabular directly.
- string param_str = "tabular";
+ string param_str = "tabular from-dialog";
// table width
string tabwidth = widgetsToLength(tabularWidthED, tabularWidthUnitLC);
if (&cur.inset() != this || cmd.getArg(0) != "tabular")
break;
- string const s = cmd.getArg(1);
// FIXME: We only check for the very first argument...
+ string const s = cmd.getArg(1);
+ // We always enable the lfun if it is coming from the dialog
+ // because the dialog makes sure all the settings are valid,
+ // even though the first argument might not be valid now.
+ if (s == "from-dialog") {
+ status.setEnabled(true);
+ return true;
+ }
+
int action = Tabular::LAST_ACTION;
int i = 0;
for (; tabularFeature[i].action != Tabular::LAST_ACTION; ++i) {