Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,15 +983,14 @@ void CueControl::hotcueSet(HotcueControl* pControl, double value, HotcueSetMode
}
}

CuePointer pCue = m_pLoadedTrack->createAndAddCue(
CuePointer pCue(new Cue(
cueType,
hotcueIndex,
cueStartPosition,
cueEndPosition,
color);

// TODO(XXX) deal with spurious signals
color));
attachCue(pCue, pControl);
m_pLoadedTrack->addCue(pCue);

if (cueType == mixxx::CueType::Loop) {
setCurrentSavedLoopControlAndActivate(pControl);
Expand Down
5 changes: 5 additions & 0 deletions src/track/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,11 @@ CuePointer Track::createAndAddCue(
startPosition,
endPosition,
color));
addCue(pCue);
return pCue;
}

CuePointer Track::addCue(CuePointer pCue) {
// While this method could be called from any thread,
// associated Cue objects should always live on the
// same thread as their host, namely this->thread().
Expand Down
2 changes: 2 additions & 0 deletions src/track/track.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ class Track : public QObject {
// Call when analysis is done.
void analysisFinished();

CuePointer addCue(CuePointer pCue);

// Calls for managing the track's cue points
CuePointer createAndAddCue(
mixxx::CueType type,
Expand Down
Loading