mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Disable branches insert menu if read only
This commit is contained in:
parent
0bf61a48c0
commit
4843618655
@ -1392,7 +1392,7 @@ void MenuDefinition::expandToolbars()
|
||||
|
||||
void MenuDefinition::expandBranches(Buffer const * buf)
|
||||
{
|
||||
if (!buf)
|
||||
if (!buf || buf->isReadonly())
|
||||
return;
|
||||
|
||||
BufferParams const & master_params = buf->masterBuffer()->params();
|
||||
|
Loading…
Reference in New Issue
Block a user