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> 2003-10-15 André Pönitz <poenitz@gmx.net>

View File

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