diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-01 20:45:57 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-01 20:45:57 -0400 |
commit | 2da10afb6492815aa76e9b8bb771f09c10721991 (patch) | |
tree | 94585b3c9fff57fb83ca9090013db0170758ca73 /gtk2_ardour/add_route_dialog.cc | |
parent | 851a3924955a52a220b9a811229abdb2e8c8315f (diff) |
fix #5424: routes created from templates do not get names based on the user-supplied text from the add route dialog
Diffstat (limited to 'gtk2_ardour/add_route_dialog.cc')
-rw-r--r-- | gtk2_ardour/add_route_dialog.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index 487d65a19c..f5f4c62dac 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -288,11 +288,26 @@ AddRouteDialog::track_type_chosen () string -AddRouteDialog::name_template () +AddRouteDialog::name_template () const { return name_template_entry.get_text (); } +bool +AddRouteDialog::name_template_is_default() const +{ + string n = name_template(); + + if (n == _("Audio") || + n == _("MIDI") || + n == _("Audio+MIDI") || + n == _("Bus")) { + return true; + } + + return false; +} + int AddRouteDialog::count () { |