Disable branches insert menu if read only

This commit is contained in:
Scott Kostyshak 2014-02-19 16:58:31 -05:00
parent 0bf61a48c0
commit 4843618655

View File

@ -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();