From 7cfe885af1ce59973fbeaea5656ab9a353600785 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Tue, 10 Feb 2009 00:10:45 +0000 Subject: [PATCH] Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 (Outliner uninitialized after lyx launch) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28428 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index bb2f0eef8b..f040626ecb 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -388,8 +388,12 @@ bool GuiView::restoreLayout() setLayoutDirection(qApp->layoutDirection()); // Allow the toc and view-source dock widget to be restored if needed. - findOrBuild("toc", true); - findOrBuild("view-source", true); + Dialog *d; + if (d = findOrBuild("toc", true)) + // see bug 5082 + d->showView(); + if (d = findOrBuild("view-source", true)) + d->showView(); if (!restoreState(settings.value("layout").toByteArray(), 0)) initToolbars(); -- 2.39.2