Skip to content

Commit

Permalink
Eject Undo: address cleanup notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Feb 14, 2022
1 parent 231102f commit 515ac0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mixer/baseplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <QObject>
#include <QString>

#include "playermanager.h"
#include "mixer/playermanager.h"

class BasePlayer : public QObject {
Q_OBJECT
Expand Down
2 changes: 1 addition & 1 deletion src/mixer/basetrackplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void BaseTrackPlayerImpl::slotEjectTrack(double v) {
}
if (!m_pLoadedTrack) {
TrackPointer lastEjected = m_pPlayerManager->getLastEjectedTrack();
if (lastEjected && lastEjected->getId().isValid()) {
if (lastEjected) {
slotLoadTrack(lastEjected, false);
}
return;
Expand Down
4 changes: 2 additions & 2 deletions src/mixer/playermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ Sampler* PlayerManager::getSampler(unsigned int sampler) const {

TrackPointer PlayerManager::getLastEjectedTrack() const {
if (m_pLibrary) {
return m_pLibrary->trackCollectionManager()->getTrackById(m_pLastEjectedTrackId);
return m_pLibrary->trackCollectionManager()->getTrackById(m_lastEjectedTrackId);
}
return nullptr;
}
Expand Down Expand Up @@ -748,7 +748,7 @@ void PlayerManager::slotSaveEjectedTrack(TrackPointer track) {
VERIFY_OR_DEBUG_ASSERT(track) {
return;
}
m_pLastEjectedTrackId = track->getId();
m_lastEjectedTrackId = track->getId();
}

void PlayerManager::onTrackAnalysisProgress(TrackId trackId, AnalyzerProgress analyzerProgress) {
Expand Down
2 changes: 1 addition & 1 deletion src/mixer/playermanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class PlayerManager : public QObject, public PlayerManagerInterface {

TrackAnalysisScheduler::Pointer m_pTrackAnalysisScheduler;

TrackId m_pLastEjectedTrackId;
TrackId m_lastEjectedTrackId;

QList<Deck*> m_decks;
QList<Sampler*> m_samplers;
Expand Down

0 comments on commit 515ac0b

Please sign in to comment.