summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-05-12 12:45:39 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-05-12 12:45:39 -0600
commit7a0427201cf206f27e026f9f288edf6608f9a025 (patch)
tree2936ce157a9da2d13a3f2ea38fce9fca3da2187f /libs
parenta9360eb6d6a4eb0c1b59c7f3a3f7be664c2c0bb8 (diff)
essentially a no-op to just make conditional clearer more explicit
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_transport.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc
index 28af0782dc..37dcd91457 100644
--- a/libs/ardour/session_transport.cc
+++ b/libs/ardour/session_transport.cc
@@ -1599,9 +1599,11 @@ Session::set_play_loop (bool yn, bool change_transport_state)
if (!Config->get_loop_is_mode()) {
/* args: positition, disposition, flush=true, for_loop_end=false, force=true */
TFSM_LOCATE (loc->start(), MustRoll, true, false, true);
- } else if (!transport_rolling()) {
- /* loop-is-mode: not rolling, just locate to loop start */
- TFSM_LOCATE (loc->start(), MustStop, true, false, true);
+ } else {
+ if (!transport_rolling()) {
+ /* loop-is-mode: not rolling, just locate to loop start */
+ TFSM_LOCATE (loc->start(), MustStop, true, false, true);
+ }
}
TransportStateChange (); /* EMIT SIGNAL */
} else {