case LFUN_INSET_DIALOG_UPDATE:
status.setEnabled(true);
return true;
- case LFUN_CAPTION_INSERT:
- status.setEnabled(!params().isInline());
- return true;
+ case LFUN_CAPTION_INSERT: {
+ if (params().isInline()) {
+ status.setEnabled(false);
+ return true;
+ }
+ }
default:
return InsetCollapsable::getStatus(cur, cmd, status);
}
TexRow texrow;
odocstringstream ods;
otexstream os(ods, texrow);
- ins->getOptArg(os, runparams);
+ ins->getArgs(os, runparams);
ins->getArgument(os, runparams);
// the caption may contain \label{} but the listings
// package prefer caption={}, label={}