Do not try to restore Route solo state after clearing all solo state
[ardour.git] / gtk2_ardour / edit_note_dialog.cc
index 08cfbadec2cf7cf602244c48149224257d21a51a..924b75d3b15b5590bf7deabf475c14c451e014ed 100644 (file)
@@ -26,7 +26,7 @@
 #include "midi_region_view.h"
 #include "note_base.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace Gtk;
@@ -223,7 +223,10 @@ EditNoteDialog::done (int r)
 
        _region_view->apply_diff ();
 
+       list<Evoral::event_id_t> notes;
        for (set<NoteBase*>::iterator i = _events.begin(); i != _events.end(); ++i) {
-               (*i)->set_selected ((*i)->selected()); // change color
+               notes.push_back ((*i)->note()->id());
        }
+
+       _region_view->select_notes (notes);
 }