Allow the toc and view-source dock widget to be restored if needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25214 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-09 15:01:45 +00:00
parent 42cb86adb9
commit 16420e5263

View File

@ -372,6 +372,9 @@ void GuiView::restoreLayout()
if (!restoreGeometry(settings.value(key + "/geometry").toByteArray()))
setGeometry(50, 50, 690, 510);
#endif
// Allow the toc and view-source dock widget to be restored if needed.
find_or_build("toc");
find_or_build("view-source");
if (!restoreState(settings.value(key + "/layout").toByteArray(), 0))
initToolbars();
}