]> git.lyx.org Git - features.git/commitdiff
Fix section-select when issued from outliner
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Mar 2014 09:21:18 +0000 (10:21 +0100)
committerRichard Heck <rgheck@lyx.org>
Fri, 18 Apr 2014 14:52:46 +0000 (10:52 -0400)
Fixes: #8936
src/frontends/qt4/TocWidget.cpp

index 3619e6c3b49ffaacdaee976ba6cbd51e7eb57510..2069035abe732aee217e05f260ef5cee3ddbe367 100644 (file)
@@ -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: {