]> git.lyx.org Git - features.git/commitdiff
Greetings to Lars from Scott Kostyshak, cf r40585.
authorPavel Sanda <sanda@lyx.org>
Wed, 22 Feb 2012 12:11:21 +0000 (12:11 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 22 Feb 2012 12:11:21 +0000 (12:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40792 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index badf8d171ede17f4c0c21db1869afea527fb01dd..24651e72df252d518335293d11040ca9ed3c6650 100644 (file)
@@ -949,8 +949,8 @@ void MenuDefinition::expandDocuments()
        Buffer * b = first;
        // We cannot use a for loop as the buffer list cycles.
        do {
-               if (guiApp->currentView()
-                   && guiApp->currentView()->workArea(*b)) {
+               if (!(guiApp->currentView()
+                   && guiApp->currentView()->workArea(*b))) {
                        QString label = toqstr(b->fileName().displayName(20));
                        if (!b->isClean())
                                label += "*";