\r
void InsetDialog::on_newPB_clicked()\r
{\r
- docstring argument;\r
- if (d->creation_code_ == LFUN_INSET_INSERT)\r
- argument = from_ascii(insetName(d->inset_code_)) + " ";\r
- argument += dialogToParams();\r
+ docstring const argument = dialogToParams();\r
dispatch(FuncRequest(d->creation_code_, argument));\r
}\r
\r
paramsToDialog(i);\r
else\r
enableView(false);\r
+\r
+ //FIXME: the newPB push button cannot be accessed here and so cannot be\r
+ // disabled...\r
+ /*\r
+ docstring const argument = dialogToParams();\r
+ newPB->setEnabled(\r
+ getStatus(FuncRequest(LFUN_INSET_MODIFY, argument).enabled());\r
+ */\r
}\r
\r
} // namespace frontend\r