Fix a crashing problem with unknown actions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7925 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-10-16 11:16:15 +00:00
parent eac541985f
commit 506844eca2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-10-16 Lars Gullik Bjønnes <larsbj@gullik.net>
* lyxfunc.C (getStatus): also set flag disabled if it is a unknown
action.
2003-10-15 André Pönitz <poenitz@gmx.net>
@ -40,7 +44,7 @@
boxes. Use the outer paragraph as location (also for unknown
tokens).
* factory.C (readInset): do not abort on reading an unknown inset.
* factory.C (readInset): do not abort on reading an unknown inset.
Eat it and return 0.
2003-10-13 Angus Leeming <leeming@lyx.org>

View File

@ -288,6 +288,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
case LFUN_THESAURUS_ENTRY:
#endif
flag.unknown(true);
flag.disabled(true);
break;
default:
flag |= lyx_gui::getStatus(ev);