]> git.lyx.org Git - features.git/commitdiff
Reset the focus on the work area after using on any navigator gui control.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 30 May 2008 12:13:42 +0000 (12:13 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 30 May 2008 12:13:42 +0000 (12:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25008 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index 823de4de23541690c64c21b14191198141a76dbb..a529337da3a8b844b21f054460e58b0dcbbd7024 100644 (file)
@@ -108,6 +108,7 @@ void TocWidget::on_depthSL_valueChanged(int depth)
        if (depth == depth_)
                return;
        setTreeDepth(depth);
+       gui_view_.setFocus();
 }
 
 
@@ -147,6 +148,7 @@ void TocWidget::outline(int func_code)
        goTo(list[0]);
        dispatch(FuncRequest(static_cast<FuncCode>(func_code)));
        enableControls(true);
+       gui_view_.setFocus();
 }