From a62b68befd8ebfc2b1d94aa1ede1bc2857a1b048 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 10 Apr 2009 17:21:40 +0000 Subject: [PATCH] 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 --- src/insets/InsetPhantom.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2