mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
4248fe1067
commit
c199293cf1
@ -220,10 +220,6 @@ void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
void Inset::doDispatch(Cursor & cur, FuncRequest &cmd)
|
void Inset::doDispatch(Cursor & cur, FuncRequest &cmd)
|
||||||
{
|
{
|
||||||
switch (cmd.action) {
|
switch (cmd.action) {
|
||||||
case LFUN_INSET_TOGGLE:
|
|
||||||
edit(cur, true);
|
|
||||||
cur.dispatched();
|
|
||||||
break;
|
|
||||||
case LFUN_INSET_SETTINGS:
|
case LFUN_INSET_SETTINGS:
|
||||||
showInsetDialog(&cur.bv());
|
showInsetDialog(&cur.bv());
|
||||||
cur.dispatched();
|
cur.dispatched();
|
||||||
@ -262,11 +258,6 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd,
|
|||||||
flag.setEnabled(false);
|
flag.setEnabled(false);
|
||||||
return true;
|
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:
|
case LFUN_INSET_SETTINGS:
|
||||||
flag.setEnabled(false);
|
flag.setEnabled(false);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user