]> git.lyx.org Git - features.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5082
authorPavel Sanda <sanda@lyx.org>
Tue, 10 Feb 2009 00:10:45 +0000 (00:10 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 10 Feb 2009 00:10:45 +0000 (00:10 +0000)
(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

index bb2f0eef8b583aef110aa5b4581754d0b12d63b3..f040626ecbc35d5ef604f608dace5d67a4d8b899 100644 (file)
@@ -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();