From ac55ec0f56e8247f7b069e5a4cffe745beba4b2e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 3 Oct 2008 13:12:58 +0000 Subject: [PATCH] It seems that somebody added the code to show the dockwidget at layout restoration time. This is wrong so I reverted this. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 5bcd6aae7b..f1e8e7c666 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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(); -- 2.39.2