mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
Fix inset creation, the inset name code was already passed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33357 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1eed486fc4
commit
63504dc21c
@ -70,10 +70,7 @@ void InsetDialog::on_closePB_clicked()
|
|||||||
|
|
||||||
void InsetDialog::on_newPB_clicked()
|
void InsetDialog::on_newPB_clicked()
|
||||||
{
|
{
|
||||||
docstring argument;
|
docstring const argument = dialogToParams();
|
||||||
if (d->creation_code_ == LFUN_INSET_INSERT)
|
|
||||||
argument = from_ascii(insetName(d->inset_code_)) + " ";
|
|
||||||
argument += dialogToParams();
|
|
||||||
dispatch(FuncRequest(d->creation_code_, argument));
|
dispatch(FuncRequest(d->creation_code_, argument));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,6 +99,14 @@ void InsetDialog::updateView()
|
|||||||
paramsToDialog(i);
|
paramsToDialog(i);
|
||||||
else
|
else
|
||||||
enableView(false);
|
enableView(false);
|
||||||
|
|
||||||
|
//FIXME: the newPB push button cannot be accessed here and so cannot be
|
||||||
|
// disabled...
|
||||||
|
/*
|
||||||
|
docstring const argument = dialogToParams();
|
||||||
|
newPB->setEnabled(
|
||||||
|
getStatus(FuncRequest(LFUN_INSET_MODIFY, argument).enabled());
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
|
Loading…
Reference in New Issue
Block a user