summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-03-17 17:04:45 +0100
committerRobin Gareus <robin@gareus.org>2019-03-17 17:04:45 +0100
commitb14fdbb5163accb13a33a5204df280e6a7df8431 (patch)
tree8af9d4093d71121cac2ff77a1e59af03ed318a84 /libs/ardour/session.cc
parent2f09f72b3d6ffeeafb11fc6096c34ffcbe393d5d (diff)
NO-OP: prefer to use API to check session-state
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 248b4fe003..89a214fdc2 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -1203,7 +1203,7 @@ Session::remove_monitor_section ()
}
remove_route (_monitor_out);
- if (_state_of_the_state & Deletion) {
+ if (deletion_in_progress ()) {
return;
}
@@ -3740,7 +3740,7 @@ Session::remove_routes (boost::shared_ptr<RouteList> routes_to_remove)
}
/* speed up session deletion, don't do the solo dance */
- if (0 == (_state_of_the_state & Deletion)) {
+ if (!deletion_in_progress ()) {
(*iter)->solo_control()->set_value (0.0, Controllable::NoGroup);
}
@@ -6437,7 +6437,7 @@ Session::update_route_record_state ()
void
Session::listen_position_changed ()
{
- if (loading ()) {
+ if (loading ()) {
/* skip duing session restore (already taken care of) */
return;
}