mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +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>
|
2005-04-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
* insetcollapsable.C (doDispatch): do not pass through double/triple
|
* insetcollapsable.C (doDispatch): do not pass through double/triple
|
||||||
|
@ -202,17 +202,10 @@ bool InsetBranch::getStatus(LCursor & cur, FuncRequest const & cmd,
|
|||||||
|| cmd.argument.empty()) {
|
|| cmd.argument.empty()) {
|
||||||
BranchList const & branchlist =
|
BranchList const & branchlist =
|
||||||
cur.buffer().params().branchlist();
|
cur.buffer().params().branchlist();
|
||||||
if (isBranchSelected(branchlist)) {
|
if (isBranchSelected(branchlist))
|
||||||
if (status() != Open)
|
flag.enabled(status() != Open);
|
||||||
flag.enabled(true);
|
|
||||||
else
|
else
|
||||||
flag.enabled(false);
|
flag.enabled(status() != Collapsed);
|
||||||
} else {
|
|
||||||
if (status() != Collapsed)
|
|
||||||
flag.enabled(true);
|
|
||||||
else
|
|
||||||
flag.enabled(false);
|
|
||||||
}
|
|
||||||
} else
|
} else
|
||||||
flag.enabled(true);
|
flag.enabled(true);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user