summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-01-24 15:32:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-01-24 15:32:25 +0000
commit18714b85bb37141793096960801e8f4200c6dfbe (patch)
tree1a959c2b699226617bf37e03dffb09e044174184 /gtk2_ardour/mixer_strip.cc
parentd7e17f088fef2a3ab37fd90881cad1e06ca8878c (diff)
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
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc4
1 files changed, 3 insertions, 1 deletions
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();