Allow to send immediate PC messages without closing the dialog.
[ardour.git] / gtk2_ardour / editor_ops.cc
index 05118c2319899b3fbda6ac193ded62a9c375f055..e2a378759def1b41be29b18f5e1aa0b98fe362c7 100644 (file)
@@ -3093,7 +3093,7 @@ Editor::split_multichannel_region ()
        vector< boost::shared_ptr<Region> > v;
 
        for (list<RegionView*>::iterator x = rs.begin(); x != rs.end(); ++x) {
-               (*x)->region()->separate_by_channel (*_session, v);
+               (*x)->region()->separate_by_channel (v);
        }
 }
 
@@ -5428,6 +5428,7 @@ Editor::apply_midi_note_edit_op (MidiOperator& op, const RegionSelection& rs)
 
        if (in_command) {
                commit_reversible_command ();
+               _session->set_dirty ();
        }
 }
 
@@ -5956,7 +5957,7 @@ Editor::toggle_mute ()
 {
        bool new_state = false;
        bool first = true;
-       StripableList sl;
+       boost::shared_ptr<ControlList> cl (new ControlList);
 
        for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
                StripableTimeAxisView *stav = dynamic_cast<StripableTimeAxisView *>(*i);
@@ -5970,10 +5971,10 @@ Editor::toggle_mute ()
                        first = false;
                }
 
-               sl.push_back (stav->stripable());
+               cl->push_back (stav->stripable()->mute_control());
        }
 
-       _session->set_controls (stripable_list_to_control_list (sl, &Stripable::mute_control), new_state, Controllable::UseGroup);
+       _session->set_controls (cl, new_state, Controllable::UseGroup);
 }
 
 void