Fix DSP load sorting with inactive plugins
[ardour.git] / gtk2_ardour / stripable_treemodel.cc
index 197683577cf84a0bd588bb3fc7b84bc6d6d84ae7..7adc19e6b65d1f33cbe204c735cd79d7b3f189a0 100644 (file)
@@ -1,18 +1,20 @@
-/* Copyright (C) 2017 Paul Davis
- *   based on gtkmm example Copyright (C) 2002 gtkmm development team
+/*
+ * Copyright (C) 2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
+ * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * 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 <iostream>
@@ -129,7 +131,7 @@ StripableTreeModel::iter_next_vfunc (const iterator& iter, iterator& iter_next)
        if (sl.empty()) {
                return false;
        }
-       sl.sort (Stripable::PresentationOrderSorter());
+       sl.sort (Stripable::Sorter());
 
        for (StripableList::const_iterator s = sl.begin(); s != sl.end(); ++s) {
 
@@ -199,7 +201,7 @@ StripableTreeModel::iter_nth_root_child_vfunc(int n, iterator& iter) const
                return false;
        }
 
-       sl.sort (Stripable::PresentationOrderSorter());
+       sl.sort (Stripable::Sorter());
 
        StripableList::const_iterator s;