fix check for order max in PresentationInfo::parse (string&)
[ardour.git] / gtk2_ardour / route_processor_selection.cc
index 1810ba674b40498ef838b595da8a66eac06b7893..30943e22d04475765a1d4b1b07d7b815e9797b82 100644 (file)
 #include <sigc++/bind.h>
 #include "pbd/error.h"
 
-#include "ardour/playlist.h"
-#include "ardour/processor.h"
-#include "ardour/route.h"
-
 #include "gui_thread.h"
 #include "mixer_strip.h"
 #include "route_processor_selection.h"
@@ -109,11 +105,11 @@ RouteProcessorSelection::add (RouteUI* r)
                        r->set_selected (true);
 
                        MixerStrip* ms = dynamic_cast<MixerStrip*> (r);
-                       
+
                        if (ms) {
                                ms->CatchDeletion.connect (*this, invalidator (*this), boost::bind (&RouteProcessorSelection::remove, this, _1), gui_context());
                        }
-                       
+
                        if (!_no_route_change_signal) {
                                RoutesChanged();
                        }
@@ -128,8 +124,8 @@ RouteProcessorSelection::remove (RouteUI* r)
 
        RouteUISelection::iterator i;
        if ((i = find (routes.begin(), routes.end(), r)) != routes.end()) {
-               routes.erase (i);
                (*i)->set_selected (false);
+               routes.erase (i);
                if (!_no_route_change_signal) {
                        RoutesChanged ();
                }