From 48436186558b8a8610a3ba88468d05799d0df01c Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 19 Feb 2014 16:58:31 -0500 Subject: [PATCH] Disable branches insert menu if read only --- src/frontends/qt4/Menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index eaf9f24917..5a901d8acc 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -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();