]> git.lyx.org Git - features.git/commitdiff
It seems that somebody added the code to show the dockwidget at layout restoration...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 3 Oct 2008 13:12:58 +0000 (13:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 3 Oct 2008 13:12:58 +0000 (13:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 5bcd6aae7be43f88b2bb0c3acffb6b5811a1ce3e..f1e8e7c666fa02b1ef16c333987a574719a75307 100644 (file)
@@ -383,11 +383,8 @@ bool GuiView::restoreLayout()
        setLayoutDirection(qApp->layoutDirection());
 
        // Allow the toc and view-source dock widget to be restored if needed.
-       Dialog * tmp;
-       if ((tmp = findOrBuild("toc", true)))
-               tmp->showView();
-       if ((tmp = findOrBuild("view-source", true)))
-               tmp->showView();
+       findOrBuild("toc", true);
+       findOrBuild("view-source", true);
 
        if (!restoreState(settings.value("layout").toByteArray(), 0))
                initToolbars();