From: Vincent van Ravesteijn Date: Fri, 10 Apr 2009 17:21:40 +0000 (+0000) Subject: Show the current type of Phantom in the Phantom context menu. X-Git-Tag: 2.0.0~6869 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a62b68befd8ebfc2b1d94aa1ede1bc2857a1b048;p=features.git Show the current type of Phantom in the Phantom context menu. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29190 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index 3ba99b1133..2be07faf9c 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -285,10 +285,15 @@ bool InsetPhantom::getStatus(Cursor & cur, FuncRequest const & cmd, switch (cmd.action) { case LFUN_INSET_MODIFY: - case LFUN_INSET_SETTINGS: + if (cmd.getArg(0) == "phantom") { + InsetPhantomParams params; + string2params(to_utf8(cmd.argument()), params); + flag.setOnOff(params_.type == params.type); + } flag.setEnabled(true); return true; + case LFUN_INSET_SETTINGS: case LFUN_INSET_DIALOG_UPDATE: flag.setEnabled(true); return true;