]> git.lyx.org Git - features.git/commitdiff
Set enable for both cases
authorScott Kostyshak <skostysh@lyx.org>
Wed, 8 Apr 2015 16:58:03 +0000 (12:58 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 8 Apr 2015 16:59:06 +0000 (12:59 -0400)
Thanks to Jürgen.

src/frontends/qt4/GuiView.cpp

index e85d04203ee865f76e737ceca76db38e3b8433cd..5e8893bfc87770c210a7a5763ef3e327bf09be79 100644 (file)
@@ -1924,8 +1924,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
        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;
+               enable = (d.currentTabWorkArea()->count() > 1);
                break;
        case LFUN_BUFFER_SWITCH:
                // toggle on the current buffer, but do not toggle off