mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
625194dc63
commit
dddce19ed2
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user