]> git.lyx.org Git - features.git/blobdiff - src/LyXFunc.cpp
Move LFUN_BUFFER_SWITCH from LyXFunc::getStatus to GuiView::getStatus.
[features.git] / src / LyXFunc.cpp
index e9f7d91f07ae7ce911c31beeb7b2d57fed187048..0025ac5b81a572803cab8efec697585546b551d6 100644 (file)
@@ -467,13 +467,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
                flag.setOnOff(buf->isReadonly());
                break;
 
-       case LFUN_BUFFER_SWITCH:
-               // toggle on the current buffer, but do not toggle off
-               // the other ones (is that a good idea?)
-               if (buf && to_utf8(cmd.argument()) == buf->absFileName())
-                       flag.setOnOff(true);
-               break;
-
        case LFUN_BUFFER_CHKTEX:
                enable = buf->isLatex() && !lyxrc.chktex_command.empty();
                break;