From: Abdelrazak Younes Date: Fri, 3 Oct 2008 13:12:58 +0000 (+0000) Subject: It seems that somebody added the code to show the dockwidget at layout restoration... X-Git-Tag: 1.6.10~3208 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ac55ec0f56e8247f7b069e5a4cffe745beba4b2e;p=features.git 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 --- 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();