]> git.lyx.org Git - features.git/commitdiff
Simplify previous commit
authorScott Kostyshak <skostysh@lyx.org>
Wed, 8 Apr 2015 02:59:34 +0000 (22:59 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 8 Apr 2015 02:59:34 +0000 (22:59 -0400)
The brackets are not necessary.

src/frontends/qt4/GuiView.cpp

index 65fe9195e2ab31a0e38096148c75922b8df59dbc..f94a709c87ca65334cc9c9801da5cabe8404effc 100644 (file)
@@ -1922,12 +1922,12 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
                break;
 
        case LFUN_BUFFER_NEXT:
-       case LFUN_BUFFER_PREVIOUS: {
+       case LFUN_BUFFER_NEXT:
+       case LFUN_BUFFER_PREVIOUS:
                // because we cycle, it doesn't matter whether on first or last
                if (d.currentTabWorkArea()->count() <= 1)
                        enable = false;
                break;
-       }
        case LFUN_BUFFER_SWITCH:
                // toggle on the current buffer, but do not toggle off
                // the other ones (is that a good idea?)