Remove last bits of LFUN_INSET_TOGGLE that is used to show the inset settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29179 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-04-10 01:40:16 +00:00
parent 4248fe1067
commit c199293cf1

View File

@ -220,10 +220,6 @@ void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
void Inset::doDispatch(Cursor & cur, FuncRequest &cmd)
{
switch (cmd.action) {
case LFUN_INSET_TOGGLE:
edit(cur, true);
cur.dispatched();
break;
case LFUN_INSET_SETTINGS:
showInsetDialog(&cur.bv());
cur.dispatched();
@ -262,11 +258,6 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd,
flag.setEnabled(false);
return true;
case LFUN_INSET_TOGGLE:
// remove this if we dissociate toggle from edit.
flag.setEnabled(editable() == IS_EDITABLE);
return true;
case LFUN_INSET_SETTINGS:
flag.setEnabled(false);
return true;