Skip to content

Commit 16ed10d

Browse files
author
Remon Sijrier
committed
process the command group in Song;:go() before setting the transport state to true!!!
1 parent 2bdc802 commit 16ed10d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/core/Song.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,6 @@ Command* Song::go()
673673
{
674674
// printf("Song-%d::go m_transport is %d\n", m_id, m_transport);
675675

676-
CommandGroup* group = 0;
677-
678676
if (is_transporting() && m_recording) {
679677
set_recording(false);
680678
}
@@ -685,7 +683,7 @@ Command* Song::go()
685683
emit transferStarted();
686684

687685
if (m_recording && any_track_armed()) {
688-
group = new CommandGroup(this, "");
686+
CommandGroup* group = new CommandGroup(this, "");
689687
int clipcount = 0;
690688
foreach(Track* track, m_tracks) {
691689
if (track->armed()) {
@@ -697,17 +695,13 @@ Command* Song::go()
697695
}
698696
}
699697
group->setText(tr("Recording to %n Clip(s)", "", clipcount));
698+
Command::process_command(group);
700699
}
701700

702701
m_transport = true;
703-
// printf("m_transport is %d\n", m_transport);
704702
realtimepath = true;
705703
}
706704

707-
if (group) {
708-
return group;
709-
}
710-
711705
return ie().succes();
712706
}
713707

0 commit comments

Comments
 (0)