mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
add some tests for LFUN_VC_REVERT and LFUN_VC_REPO_UPDATE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35573 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
de5aab29d4
commit
1b93af1009
@ -1651,13 +1651,13 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
||||
flag.setOnOff(enable && doc_buffer->lyxvc().locking());
|
||||
break;
|
||||
case LFUN_VC_REVERT:
|
||||
enable = doc_buffer && doc_buffer->lyxvc().inUse();
|
||||
enable = doc_buffer && doc_buffer->lyxvc().inUse() && !doc_buffer->isReadonly();
|
||||
break;
|
||||
case LFUN_VC_UNDO_LAST:
|
||||
enable = doc_buffer && doc_buffer->lyxvc().undoLastEnabled();
|
||||
break;
|
||||
case LFUN_VC_REPO_UPDATE:
|
||||
enable = doc_buffer && doc_buffer->lyxvc().inUse();
|
||||
enable = doc_buffer && doc_buffer->lyxvc().repoUpdateEnabled();
|
||||
break;
|
||||
case LFUN_VC_COMMAND: {
|
||||
if (cmd.argument().empty())
|
||||
|
Loading…
Reference in New Issue
Block a user