Use conf.fatal for fatal configuration errors
[ardour.git] / gtk2_ardour / add_route_dialog.cc
index fadc0bf99c786984562b10f6505846883a4064a5..ee251d1f279bf94f440a23fc5b185c24eabdd11f 100644 (file)
@@ -1,21 +1,27 @@
 /*
-  Copyright (C) 2003 Paul Davis
-
-  This program is free software; you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
-
-  This program is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2005-2006 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2005-2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2006-2014 David Robillard <d@drobilla.net>
+ * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2014-2019 Robin Gareus <robin@gareus.org>
+ * Copyright (C) 2015-2017 Ben Loftis <ben@harrisonconsoles.com>
+ * Copyright (C) 2015 Nick Mainsbridge <mainsbridge@gmail.com>
+ * Copyright (C) 2018 Len Ovens <len@ovenwerks.net>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #include <cstdio>
 #include <cmath>
@@ -755,8 +761,8 @@ AddRouteDialog::track_type_chosen ()
                break;
        case FoldbackBus:
 
-               configuration_label.set_sensitive (false);
-               channel_combo.set_sensitive (false);
+               configuration_label.set_sensitive (true);
+               channel_combo.set_sensitive (true);
 
                mode_label.set_sensitive (false);
                mode_combo.set_sensitive (false);
@@ -794,6 +800,7 @@ AddRouteDialog::name_template_is_default () const
            n == _("MIDI") ||
            n == _("Audio+MIDI") ||
            n == _("Bus") ||
+           n == _("Foldback") ||
            n == VCA::default_name_template()) {
                return true;
        }
@@ -875,7 +882,7 @@ AddRouteDialog::channels ()
                break;
 
        case FoldbackBus:
-               ret.set (DataType::AUDIO, 2);
+               ret.set (DataType::AUDIO, channel_count ());
                ret.set (DataType::MIDI, 0);
                break;