Add additional roll check in transport_record
authorNikolaus Gullotta <nik@harrisonconsoles.com>
Mon, 16 Dec 2019 19:06:04 +0000 (13:06 -0600)
committerNikolaus Gullotta <nik@harrisonconsoles.com>
Mon, 16 Dec 2019 19:06:04 +0000 (13:06 -0600)
Previously there was no check for roll in case Session::Enabled this
can cause issues with "latched-record-enable" and "transport-roll"

gtk2_ardour/ardour_ui.cc

index 06fb3e87dfab6a5de625c42aef2a6db042d0dadc..b5ff6eed86b277df1557cdef2d00ea17db09105b 100644 (file)
@@ -1709,7 +1709,11 @@ ARDOUR_UI::transport_record (bool roll)
                        break;
 
                case Session::Enabled:
-                       _session->disable_record (false, true);
+                       if (roll) {
+                               transport_roll();
+                       } else {
+                               _session->disable_record (false, true);
+                       }
                }
        }
 }