commit 1c71fb6e468f70b7a991022c8d8e1b1e729fb4d0 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Fri Mar 21 10:21:18 2014 +0100
Fix section-select when issued from outliner Fixes: #8936 diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index 3619e6c..2069035 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -187,9 +187,15 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd) { case LFUN_CHANGE_ACCEPT: case LFUN_CHANGE_REJECT: + dispatch(item.action()); + cur.dispatch(tmpcmd); + break; + case LFUN_SECTION_SELECT: dispatch(item.action()); cur.dispatch(tmpcmd); + // necessary to get the selection drawn. + cur.buffer()->changed(true); break; case LFUN_LABEL_COPY_AS_REFERENCE: {