(Initialize dialogs after lyx launch).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-12 02:02:56 +00:00
parent bb11f79ca0
commit a6df920f6b

View File

@ -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();