mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Disable Edit Externally for read-only Buffers.
This commit is contained in:
parent
16834a32ad
commit
c978137f99
@ -651,11 +651,13 @@ bool InsetCollapsible::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
return true;
|
||||
|
||||
case LFUN_INSET_EDIT:
|
||||
flag.setEnabled(getLayout().editExternally() && tempfile_ == nullptr);
|
||||
flag.setEnabled(!buffer().hasReadonlyFlag() &&
|
||||
getLayout().editExternally() && tempfile_ == nullptr);
|
||||
return true;
|
||||
|
||||
case LFUN_INSET_END_EDIT:
|
||||
flag.setEnabled(getLayout().editExternally() && tempfile_ != nullptr);
|
||||
flag.setEnabled(!buffer().hasReadonlyFlag() &&
|
||||
getLayout().editExternally() && tempfile_ != nullptr);
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user