]> git.lyx.org Git - features.git/commitdiff
Fix of fix of fix of fix
authorPavel Sanda <sanda@lyx.org>
Tue, 23 Jun 2009 08:20:10 +0000 (08:20 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 23 Jun 2009 08:20:10 +0000 (08:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30239 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index baa0c9122aacea3793b0d93d38cbf55b0888f66e..c78a068978395c43fc7615c62f67a920554f5387 100644 (file)
@@ -394,11 +394,11 @@ bool GuiView::restoreLayout()
 
        // Allow the toc and view-source dock widget to be restored if needed.
        Dialog * dialog;
-       if (dialog = findOrBuild("toc", true))
+       if ((dialog = findOrBuild("toc", true)))
                // see bug 5082. At least setup title and enabled state.
                // Visibility will be adjusted by restoreState below.
                dialog->prepareView();
-       if (dialog = findOrBuild("view-source", true))
+       if ((dialog = findOrBuild("view-source", true)))
                dialog->prepareView();
 
        if (!restoreState(settings.value("layout").toByteArray(), 0))