From e8d462799cb3670e431754687c7f4c3b7d9f6323 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Jun 2009 22:08:04 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c91b4a723b..baa0c9122a 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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(); -- 2.39.2