fix thinko/typo which failed to notify when a VCA is unassigned
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Feb 2017 17:50:32 +0000 (18:50 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Feb 2017 17:50:32 +0000 (18:50 +0100)
libs/ardour/slavable_automation_control.cc

index 9acf7444ad8114f2e0a3bc6fb197848091be59fa..c67cb641881ff62c7d5086f311a4649eebe151f3 100644 (file)
@@ -263,8 +263,6 @@ SlavableAutomationControl::master_going_away (boost::weak_ptr<AutomationControl>
 void
 SlavableAutomationControl::remove_master (boost::shared_ptr<AutomationControl> m)
 {
-       Masters::size_type erased = 0;
-
        pre_remove_master (m);
 
        {
@@ -298,9 +296,7 @@ SlavableAutomationControl::remove_master (boost::shared_ptr<AutomationControl> m
                return;
        }
 
-       if (erased) {
-               MasterStatusChange (); /* EMIT SIGNAL */
-       }
+       MasterStatusChange (); /* EMIT SIGNAL */
 
        /* no need to update boolean masters records, since the MR will have
         * been removed already.