From d145c2dc9f27666ca0ed9f8589f99f502d7b2a4d Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sun, 3 Aug 2008 21:31:06 +0000 Subject: [PATCH] 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 --- src/insets/InsetInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 8cf80bbbc2..ac1d05bd20 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -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) -- 2.39.2