mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
[Summary] Bug fix 45141 "Color Palette keeps last selected color when open on new trackheader".
[Reviewed] VKamyshniy
This commit is contained in:
parent
f88db6389b
commit
fd25ea500e
1 changed files with 12 additions and 14 deletions
|
|
@ -213,17 +213,7 @@ Editor::set_selected_mixer_strip (TimeAxisView& view)
|
|||
if (!_session) {
|
||||
return;
|
||||
}
|
||||
|
||||
Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
|
||||
|
||||
if (act) {
|
||||
Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
|
||||
if (!tact || !tact->get_active()) {
|
||||
/* not showing mixer strip presently */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (current_mixer_strip == 0) {
|
||||
create_editor_mixer ();
|
||||
}
|
||||
|
|
@ -257,10 +247,18 @@ Editor::set_selected_mixer_strip (TimeAxisView& view)
|
|||
}
|
||||
}
|
||||
|
||||
if (route && (current_mixer_strip->route() != route)) {
|
||||
current_mixer_strip->set_route (route);
|
||||
Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
|
||||
|
||||
if (act) {
|
||||
Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
|
||||
|
||||
if ( tact && tact->get_active() ) { // if inspector is visible
|
||||
if (route && (current_mixer_strip->route() != route)) {
|
||||
current_mixer_strip->set_route (route);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (route && !route->is_master ()) {
|
||||
ARDOUR_UI::instance()->update_track_color_dialog (route);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue