Do not try to restore Route solo state after clearing all solo state
[ardour.git] / gtk2_ardour / axis_view.cc
index ab6d4423282261dd03b2496a2f4c68325a9c7eae..016e57945f65d07e88384a1966c85a9a92736d71 100644 (file)
@@ -37,7 +37,7 @@
 #include "gui_object.h"
 #include "axis_view.h"
 #include "utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -49,7 +49,6 @@ list<Gdk::Color> AxisView::used_colors;
 
 AxisView::AxisView ()
 {
-       _selected = false;
 }
 
 AxisView::~AxisView()
@@ -98,3 +97,19 @@ AxisView::gui_object_state()
 {
        return *ARDOUR_UI::instance()->gui_object_state;
 }
+
+void
+AxisView::set_selected (bool yn)
+{
+       if (selected() == yn) {
+               return;
+       }
+
+       Selectable::set_selected (yn);
+
+       boost::shared_ptr<Stripable> s = stripable ();
+
+       if (s) {
+               s->presentation_info().set_selected (yn);
+       }
+}