Do not try to restore Route solo state after clearing all solo state
[ardour.git] / gtk2_ardour / region_gain_line.cc
index 7a748c8749aa88437371ac455ed3aa0bc1f03cde..fd09119bd294c5749fe89ad1991cfc9e3247370c 100644 (file)
@@ -32,7 +32,7 @@
 #include "editor.h"
 #include "gui_thread.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -81,6 +81,7 @@ AudioRegionGainLine::remove_point (ControlPoint& cp)
                trackview.session()->add_command(new StatefulDiffCommand (rv.audio_region()));
        }
 
+       trackview.editor ().get_selection ().clear_points ();
        alist->erase (cp.model());
 
        trackview.editor().session()->add_command (new MementoCommand<AutomationList>(*alist.get(), &before, &alist->get_state()));