mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Proper fix for the warning that Pavel noticed. The problem was that the local variable d shadowed the private d one.
And I of course also put back the semi-colon fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30233 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
369b0714d6
commit
e8d462799c
@ -393,13 +393,13 @@ bool GuiView::restoreLayout()
|
||||
setLayoutDirection(qApp->layoutDirection());
|
||||
|
||||
// Allow the toc and view-source dock widget to be restored if needed.
|
||||
Dialog *d;
|
||||
if ((d = findOrBuild("toc", true)));
|
||||
Dialog * dialog;
|
||||
if (dialog = findOrBuild("toc", true))
|
||||
// see bug 5082. At least setup title and enabled state.
|
||||
// Visibility will be adjusted by restoreState below.
|
||||
d->prepareView();
|
||||
if ((d = findOrBuild("view-source", true)))
|
||||
d->prepareView();
|
||||
dialog->prepareView();
|
||||
if (dialog = findOrBuild("view-source", true))
|
||||
dialog->prepareView();
|
||||
|
||||
if (!restoreState(settings.value("layout").toByteArray(), 0))
|
||||
initToolbars();
|
||||
|
Loading…
Reference in New Issue
Block a user