From: Juergen Spitzmueller Date: Mon, 13 Jul 2020 14:14:21 +0000 (+0200) Subject: InsetInfo: Pass back inset-modify that do not target this inset X-Git-Tag: lyx-2.4.0dev-acb2ca7b~602 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f6d9e4170d762429655b7b343e6c20ade21f3f12;hp=25b4229c586ba3b85f919347f61b564b8fcfaa7e;p=features.git InsetInfo: Pass back inset-modify that do not target this inset Fixes #9214. --- diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 0847106dc0..b23255aafe 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -624,6 +624,8 @@ bool InsetInfo::getStatus(Cursor & cur, FuncRequest const & cmd, return true; case LFUN_INSET_MODIFY: + if (nameTranslator().find(cmd.getArg(0)) == InsetInfoParams::UNKNOWN_INFO) + return Inset::getStatus(cur, cmd, flag); if (params_.validateArgument(&buffer(), cmd.argument())) { flag.setEnabled(true); string typestr; @@ -648,6 +650,10 @@ void InsetInfo::doDispatch(Cursor & cur, FuncRequest & cmd) { switch (cmd.action()) { case LFUN_INSET_MODIFY: + if (nameTranslator().find(cmd.getArg(0)) == InsetInfoParams::UNKNOWN_INFO) { + cur.undispatched(); + break; + } cur.recordUndo(); setInfo(to_utf8(cmd.argument())); cur.forceBufferUpdate();