From 6386ebafcdadb2d45a7cf331c5bdeb2d0e37df87 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 12 Mar 2017 01:20:49 +0100 Subject: [PATCH] Update selection-clock when region properties change --- gtk2_ardour/time_info_box.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc index fd573ad4b7..b60d9c1594 100644 --- a/gtk2_ardour/time_info_box.cc +++ b/gtk2_ardour/time_info_box.cc @@ -159,7 +159,7 @@ TimeInfoBox::track_mouse_mode () } void -TimeInfoBox::region_property_change (boost::shared_ptr /* r */, const PBD::PropertyChange& what_changed) +TimeInfoBox::region_property_change (boost::shared_ptr r, const PBD::PropertyChange& what_changed) { Selection& selection (Editor::instance().get_selection()); @@ -177,12 +177,9 @@ TimeInfoBox::region_property_change (boost::shared_ptr /* r */, return; } - /* TODO: check if RegionSelection includes the given region. - * This is not straight foward because RegionSelection is done by - * RegionView (not Region itself). - */ - - //selection_changed (); + if (selection.regions.contains (r)) { + selection_changed (); + } } bool