]> git.lyx.org Git - features.git/commitdiff
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg152311.html
authorPavel Sanda <sanda@lyx.org>
Mon, 22 Jun 2009 21:06:00 +0000 (21:06 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 22 Jun 2009 21:06:00 +0000 (21:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30228 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 7c418af2b21acfa81ac9ac2a8108c967db19af5d..c91b4a723b2417748e595288531d66f1b4d757ab 100644 (file)
@@ -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))