From 18714b85bb37141793096960801e8f4200c6dfbe Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Jan 2012 15:32:25 +0000 Subject: [PATCH] don't offer to save master bus as a route template git-svn-id: svn://localhost/ardour2/branches/3.0@11330 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/mixer_strip.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index bccac4b1b3..da5bf6e9c7 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1442,7 +1442,9 @@ MixerStrip::build_route_ops_menu () MenuList& items = route_ops_menu->items(); items.push_back (MenuElem (_("Comments..."), sigc::mem_fun (*this, &MixerStrip::open_comment_editor))); - items.push_back (MenuElem (_("Save As Template..."), sigc::mem_fun(*this, &RouteUI::save_as_template))); + if (!_route->is_master()) { + items.push_back (MenuElem (_("Save As Template..."), sigc::mem_fun(*this, &RouteUI::save_as_template))); + } items.push_back (MenuElem (_("Rename..."), sigc::mem_fun(*this, &RouteUI::route_rename))); rename_menu_item = &items.back();