(Outliner uninitialized after lyx launch)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28428 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-02-10 00:10:45 +00:00
parent 0be0516d28
commit 7cfe885af1

View File

@ -388,8 +388,12 @@ bool GuiView::restoreLayout()
setLayoutDirection(qApp->layoutDirection()); setLayoutDirection(qApp->layoutDirection());
// Allow the toc and view-source dock widget to be restored if needed. // Allow the toc and view-source dock widget to be restored if needed.
findOrBuild("toc", true); Dialog *d;
findOrBuild("view-source", true); 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)) if (!restoreState(settings.value("layout").toByteArray(), 0))
initToolbars(); initToolbars();