InsetInfo: Output 'undefined' instead of an error message for undefined shortcut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26040 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-08-03 21:31:06 +00:00
parent e2a774983e
commit d145c2dc9f

View File

@ -254,7 +254,8 @@ void InsetInfo::updateInfo()
}
KeyMap::Bindings bindings = theTopLevelKeymap().findBindings(func);
if (bindings.empty()) {
error("No binding for action %1$s");
// It is impropriate to use error() for undefined shortcut
setText(_("undefined"));
break;
}
if (type_ == SHORTCUT_INFO)