From: Abdelrazak Younes Date: Mon, 22 Jun 2009 20:16:08 +0000 (+0000) Subject: Bug fix? X-Git-Tag: 2.0.0~6231 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=14864ab16a671f933e77d072ccbcf6dfacc929d3;p=lyx.git Bug fix? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30225 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c91b4a723b..7c418af2b2 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -394,11 +394,11 @@ bool GuiView::restoreLayout() // Allow the toc and view-source dock widget to be restored if needed. Dialog *d; - if ((d = findOrBuild("toc", true))); + if (d = 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))) + if (d = findOrBuild("view-source", true)) d->prepareView(); if (!restoreState(settings.value("layout").toByteArray(), 0))