diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp index 2b6c8b7c6a..88c883e8f8 100644 --- a/src/insets/InsetERT.cpp +++ b/src/insets/InsetERT.cpp @@ -128,9 +128,12 @@ bool InsetERT::getStatus(Cursor & cur, FuncRequest const & cmd, { switch (cmd.action()) { case LFUN_INSET_MODIFY: - status.setEnabled(true); - return true; - + if (cmd.getArg(0) == "ert") { + status.setEnabled(true); + return true; + } + //fall through + default: return InsetCollapsable::getStatus(cur, cmd, status); }