It seems that somebody added the code to show the dockwidget at layout restoration time. This is wrong so I reverted this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-10-03 13:12:58 +00:00
parent 7231275a09
commit ac55ec0f56

View File

@ -383,11 +383,8 @@ bool GuiView::restoreLayout()
setLayoutDirection(qApp->layoutDirection());
// Allow the toc and view-source dock widget to be restored if needed.
Dialog * tmp;
if ((tmp = findOrBuild("toc", true)))
tmp->showView();
if ((tmp = findOrBuild("view-source", true)))
tmp->showView();
findOrBuild("toc", true);
findOrBuild("view-source", true);
if (!restoreState(settings.value("layout").toByteArray(), 0))
initToolbars();