mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Whitespace
This commit is contained in:
parent
6f4b2dd4b0
commit
fab7d42608
@ -1192,9 +1192,9 @@ bool BufferView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
case LFUN_BRANCH_MASTER_ACTIVATE:
|
case LFUN_BRANCH_MASTER_ACTIVATE:
|
||||||
case LFUN_BRANCH_MASTER_DEACTIVATE: {
|
case LFUN_BRANCH_MASTER_DEACTIVATE: {
|
||||||
bool const master = (cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE
|
bool const master = (cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE
|
||||||
|| cmd.action() == LFUN_BRANCH_MASTER_DEACTIVATE);
|
|| cmd.action() == LFUN_BRANCH_MASTER_DEACTIVATE);
|
||||||
BranchList const & branchList = master ? buffer().masterBuffer()->params().branchlist()
|
BranchList const & branchList = master ? buffer().masterBuffer()->params().branchlist()
|
||||||
: buffer().params().branchlist();
|
: buffer().params().branchlist();
|
||||||
docstring const branchName = cmd.argument();
|
docstring const branchName = cmd.argument();
|
||||||
flag.setEnabled(!branchName.empty() && branchList.find(branchName));
|
flag.setEnabled(!branchName.empty() && branchList.find(branchName));
|
||||||
break;
|
break;
|
||||||
@ -1978,9 +1978,9 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
case LFUN_BRANCH_MASTER_ACTIVATE:
|
case LFUN_BRANCH_MASTER_ACTIVATE:
|
||||||
case LFUN_BRANCH_MASTER_DEACTIVATE: {
|
case LFUN_BRANCH_MASTER_DEACTIVATE: {
|
||||||
bool const master = (cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE
|
bool const master = (cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE
|
||||||
|| cmd.action() == LFUN_BRANCH_MASTER_DEACTIVATE);
|
|| cmd.action() == LFUN_BRANCH_MASTER_DEACTIVATE);
|
||||||
Buffer * buf = master ? const_cast<Buffer *>(buffer().masterBuffer())
|
Buffer * buf = master ? const_cast<Buffer *>(buffer().masterBuffer())
|
||||||
: &buffer();
|
: &buffer();
|
||||||
|
|
||||||
docstring const branch_name = cmd.argument();
|
docstring const branch_name = cmd.argument();
|
||||||
// the case without a branch name is handled elsewhere
|
// the case without a branch name is handled elsewhere
|
||||||
@ -1998,7 +1998,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bool activate = (cmd.action() == LFUN_BRANCH_ACTIVATE
|
bool activate = (cmd.action() == LFUN_BRANCH_ACTIVATE
|
||||||
|| cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE);
|
|| cmd.action() == LFUN_BRANCH_MASTER_ACTIVATE);
|
||||||
if (branch->isSelected() != activate) {
|
if (branch->isSelected() != activate) {
|
||||||
branch->setSelected(activate);
|
branch->setSelected(activate);
|
||||||
cur.recordUndoFullDocument();
|
cur.recordUndoFullDocument();
|
||||||
|
Loading…
Reference in New Issue
Block a user