From a6df920f6bd3bfa01374a58c65dea4057e09f4e9 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 12 Sep 2008 02:02:56 +0000 Subject: [PATCH] Try to fix the rest of bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 . (Initialize dialogs after lyx launch). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26359 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 9068c48f2a..496de24d8a 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -378,8 +378,9 @@ bool GuiView::restoreLayout() setGeometry(50, 50, 690, 510); #endif // Allow the toc and view-source dock widget to be restored if needed. - findOrBuild("toc", true); - findOrBuild("view-source", true); + Dialog * tmp; + if (tmp = findOrBuild("toc", true)) tmp->showView(); + if (tmp = findOrBuild("view-source", true)) tmp->showView(); if (!restoreState(settings.value(key + "/layout").toByteArray(), 0)) initToolbars(); updateDialogs(); -- 2.39.5