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
This commit is contained in:
Vincent van Ravesteijn 2009-04-10 17:21:40 +00:00
parent 61dffbdbcf
commit a62b68befd

View File

@ -285,10 +285,15 @@ bool InsetPhantom::getStatus(Cursor & cur, FuncRequest const & cmd,
switch (cmd.action) { switch (cmd.action) {
case LFUN_INSET_MODIFY: 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); flag.setEnabled(true);
return true; return true;
case LFUN_INSET_SETTINGS:
case LFUN_INSET_DIALOG_UPDATE: case LFUN_INSET_DIALOG_UPDATE:
flag.setEnabled(true); flag.setEnabled(true);
return true; return true;