#include "item_counts.h"
#include "keyboard.h"
#include "midi_region_view.h"
+#include "mixer_ui.h"
#include "mixer_strip.h"
#include "mouse_cursors.h"
#include "normalize_dialog.h"
return;
}
+
+ Mixer_UI::instance()->selection().block_routes_changed (true);
+ selection->block_tracks_changed (true);
{
DisplaySuspender ds;
boost::shared_ptr<RouteList> rl (new RouteList);
* destructors are called,
* diskstream drops references, save_state is called (again for every track)
*/
+ selection->block_tracks_changed (false);
+ Mixer_UI::instance()->selection().block_routes_changed (false);
+ selection->TracksChanged (); /* EMIT SIGNAL */
}
void
using namespace ARDOUR;
using namespace PBD;
+unsigned int RouteProcessorSelection::_no_route_change_signal = 0;
RouteProcessorSelection::RouteProcessorSelection()
- : _no_route_change_signal (false)
{
}
}
axes.clear ();
drop_connections ();
- if (!_no_route_change_signal) {
+ if (0 == _no_route_change_signal) {
RoutesChanged ();
}
}
ms->CatchDeletion.connect (*this, invalidator (*this), boost::bind (&RouteProcessorSelection::remove, this, _1), gui_context());
}
- if (!_no_route_change_signal) {
+ if (0 == _no_route_change_signal) {
RoutesChanged();
}
}
if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) {
(*i)->set_selected (false);
axes.erase (i);
- if (!_no_route_change_signal) {
+ if (0 == _no_route_change_signal) {
RoutesChanged ();
}
}
void
RouteProcessorSelection::block_routes_changed (bool yn)
{
- _no_route_change_signal = yn;
+ if (yn) {
+ ++_no_route_change_signal;
+ } else {
+ assert (_no_route_change_signal > 0);
+ --_no_route_change_signal;
+ }
}