mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Revert r28853
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg148960.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28866 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aba488dea8
commit
627f08f9f1
@ -175,11 +175,8 @@ bool InsetBranch::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
|
||||
case LFUN_INSET_TOGGLE:
|
||||
if (cmd.argument() == "open")
|
||||
flag.setEnabled(status_ != Open);
|
||||
else if (cmd.argument() == "close")
|
||||
flag.setEnabled(status_ == Open);
|
||||
else if (cmd.argument() == "toggle")
|
||||
if (cmd.argument() == "open" || cmd.argument() == "close" ||
|
||||
cmd.argument() == "toggle")
|
||||
flag.setEnabled(true);
|
||||
else if (cmd.argument() == "assign" || cmd.argument().empty()) {
|
||||
if (isBranchSelected())
|
||||
|
Loading…
x
Reference in New Issue
Block a user