Please Andre and make InsetBranch::getStatus more compact

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9859 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-04-22 15:41:29 +00:00
parent 625194dc63
commit dddce19ed2
2 changed files with 8 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2005-04-22 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbranch.C (getStatus): make the code more compact
2005-04-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetcollapsable.C (doDispatch): do not pass through double/triple

View File

@ -202,17 +202,10 @@ bool InsetBranch::getStatus(LCursor & cur, FuncRequest const & cmd,
|| cmd.argument.empty()) {
BranchList const & branchlist =
cur.buffer().params().branchlist();
if (isBranchSelected(branchlist)) {
if (status() != Open)
flag.enabled(true);
else
flag.enabled(false);
} else {
if (status() != Collapsed)
flag.enabled(true);
else
flag.enabled(false);
}
if (isBranchSelected(branchlist))
flag.enabled(status() != Open);
else
flag.enabled(status() != Collapsed);
} else
flag.enabled(true);
break;