X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Ffaderport8%2Fcallbacks.cc;h=78dc7f7a7870974aeca2e74536ed52cec132e8e3;hb=417f63a29e54bc962eeb9e5855656f7f7da8c55f;hp=28fa9fd95448d8f0e5055569ba88df2e72baf33a;hpb=d2c8d357dabb1f58bc5992e82232cdbbe99fb774;p=ardour.git diff --git a/libs/surfaces/faderport8/callbacks.cc b/libs/surfaces/faderport8/callbacks.cc index 28fa9fd954..78dc7f7a78 100644 --- a/libs/surfaces/faderport8/callbacks.cc +++ b/libs/surfaces/faderport8/callbacks.cc @@ -196,23 +196,7 @@ FaderPort8::notify_solo_changed () void FaderPort8::notify_mute_changed () { - bool muted = false; - StripableList all; - session->get_stripables (all); - for (StripableList::const_iterator i = all.begin(); i != all.end(); ++i) { - if ((*i)->is_auditioner() || (*i)->is_monitor()) { - continue; - } - boost::shared_ptr r = boost::dynamic_pointer_cast(*i); - if (r && !r->active()) { - continue; - } - boost::shared_ptr mc = (*i)->mute_control(); - if (mc && mc->muted ()) { - muted = true; - break; - } - } + bool muted = session->muted (); #ifdef FP8_MUTESOLO_UNDO if (muted) { _mute_state.clear ();