commit 8913031fafeb37dda18edc7932e4311f5691aea4 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: {