]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
PrefShortcuts: list all shortcuts (bound and unbound), using a better implementation
[lyx.git] / src / BufferView.cpp
index 320477bdf4b654aed838c9686fdd886e183325f9..3dd9351879c2435db1791e4c067db72a8fe31e85 100644 (file)
@@ -852,10 +852,10 @@ FuncStatus BufferView::getStatus(FuncRequest const & cmd)
        switch (cmd.action) {
 
        case LFUN_UNDO:
-               flag.enabled(!buffer_.undo().hasUndoStack());
+               flag.enabled(buffer_.undo().hasUndoStack());
                break;
        case LFUN_REDO:
-               flag.enabled(!buffer_.undo().hasRedoStack());
+               flag.enabled(buffer_.undo().hasRedoStack());
                break;
        case LFUN_FILE_INSERT:
        case LFUN_FILE_INSERT_PLAINTEXT_PARA: