From: Pavel Sanda Date: Tue, 10 Feb 2009 00:10:45 +0000 (+0000) Subject: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 X-Git-Tag: 2.0.0~7263 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7cfe885af1ce59973fbeaea5656ab9a353600785;p=features.git 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 --- 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();