mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
next try with Michael's patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8244 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7da68795a5
commit
2384c36416
@ -354,11 +354,13 @@ InsetCollapsable::priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &)
|
||||
case LFUN_INSET_TOGGLE:
|
||||
if (inset.text_.toggleInset())
|
||||
return DispatchResult(true, true);
|
||||
if (status_ == Open)
|
||||
if (status_ == Open) {
|
||||
setStatus(Inlined);
|
||||
return DispatchResult(true, true);
|
||||
setStatus(Collapsed);
|
||||
return DispatchResult(false, FINISHED_RIGHT);
|
||||
} else {
|
||||
setStatus(Collapsed);
|
||||
return DispatchResult(false, FINISHED_RIGHT);
|
||||
}
|
||||
|
||||
default:
|
||||
return inset.dispatch(adjustCommand(cmd));
|
||||
|
Loading…
Reference in New Issue
Block a user