mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Backport typo & shadowing spotted by Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30238 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6535b61bf8
commit
130b71ce0d
@ -390,13 +390,13 @@ bool GuiView::restoreLayout()
|
|||||||
setLayoutDirection(qApp->layoutDirection());
|
setLayoutDirection(qApp->layoutDirection());
|
||||||
|
|
||||||
// Allow the toc and view-source dock widget to be restored if needed.
|
// Allow the toc and view-source dock widget to be restored if needed.
|
||||||
Dialog *d;
|
Dialog * dialog;
|
||||||
if ((d = findOrBuild("toc", true)));
|
if ((dialog = findOrBuild("toc", true)))
|
||||||
// see bug 5082. At least setup title and enabled state.
|
// see bug 5082. At least setup title and enabled state.
|
||||||
// Visibility will be adjusted by restoreState below.
|
// Visibility will be adjusted by restoreState below.
|
||||||
d->prepareView();
|
dialog->prepareView();
|
||||||
if ((d = findOrBuild("view-source", true)))
|
if ((dialog = findOrBuild("view-source", true)))
|
||||||
d->prepareView();
|
dialog->prepareView();
|
||||||
|
|
||||||
if (!restoreState(settings.value("layout").toByteArray(), 0))
|
if (!restoreState(settings.value("layout").toByteArray(), 0))
|
||||||
initToolbars();
|
initToolbars();
|
||||||
|
Loading…
Reference in New Issue
Block a user