Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/engine/controls/loopingcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,14 @@ void LoopingControl::setLoop(mixxx::audio::FramePos startPosition,
}

// Don't allow loop size widget setting to trigger creation of another loop.
double loaded_loop_size = findBeatloopSizeForLoop(startPosition, endPosition);
if (loaded_loop_size == -1) {
// Loop size doesn't match any of the pre-defined sizes,
// keep the current size
return;
}
m_pCOBeatLoopSize->blockSignals(true);
m_pCOBeatLoopSize->setAndConfirm(findBeatloopSizeForLoop(startPosition, endPosition));
m_pCOBeatLoopSize->setAndConfirm(loaded_loop_size);
m_pCOBeatLoopSize->blockSignals(false);
}

Expand Down
Loading